Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: chrome/browser/autofill/autofill_dialog_mac.mm

Issue 1952002: AutoFill profile shouldn't be saved when cancelled during initial setup. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_dialog_mac.mm
diff --git a/chrome/browser/autofill/autofill_dialog_mac.mm b/chrome/browser/autofill/autofill_dialog_mac.mm
index c01182269cad67a24bfaebeef28f98798cedc41e..63d54783a4b00cd8e0b40eb230d54c06283fe8d7 100644
--- a/chrome/browser/autofill/autofill_dialog_mac.mm
+++ b/chrome/browser/autofill/autofill_dialog_mac.mm
@@ -10,10 +10,11 @@
// Mac implementation of |ShowAutoFillDialog| interface defined in
// |chrome/browser/autofill/autofill_dialog.h|.
-void ShowAutoFillDialog(AutoFillDialogObserver* observer,
- const std::vector<AutoFillProfile*>& profiles,
- const std::vector<CreditCard*>& credit_cards,
- Profile *profile) {
+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.
@@ -21,8 +22,7 @@ void ShowAutoFillDialog(AutoFillDialogObserver* observer,
[AutoFillDialogController
showAutoFillDialogWithObserver:observer
- autoFillProfiles:profiles
- creditCards:credit_cards
- profile:profile];
+ profile:profile
+ importedProfile:imported_profile
+ importedCreditCard:imported_credit_card];
}
-
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698