blob: 63d54783a4b00cd8e0b40eb230d54c06283fe8d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "chrome/browser/autofill/autofill_dialog_controller_mac.h"
#include "chrome/browser/autofill/autofill_dialog.h"
#include "chrome/browser/pref_service.h"
#include "chrome/browser/profile.h"
#include "chrome/common/pref_names.h"
// Mac implementation of |ShowAutoFillDialog| interface defined in
// |chrome/browser/autofill/autofill_dialog.h|.
void ShowAutoFillDialog(gfx::NativeView parent,
AutoFillDialogObserver* observer,
Profile* profile,
AutoFillProfile* imported_profile,
CreditCard* imported_credit_card) {
// It's possible we haven't shown the InfoBar yet, but if the user is in the
// AutoFill dialog, she doesn't need to be asked to enable or disable
// AutoFill.
profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true);
[AutoFillDialogController
showAutoFillDialogWithObserver:observer
profile:profile
importedProfile:imported_profile
importedCreditCard:imported_credit_card];
}
|