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

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

Issue 1077003: AutoFill: Set the kAutoFillInfoBarShown pref to true if the user opens the Au... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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/views/autofill_profiles_view_win.cc » ('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
===================================================================
--- chrome/browser/autofill/autofill_dialog_mac.mm (revision 42037)
+++ chrome/browser/autofill/autofill_dialog_mac.mm (working copy)
@@ -4,7 +4,9 @@
#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|.
@@ -12,6 +14,11 @@
const std::vector<AutoFillProfile*>& profiles,
const std::vector<CreditCard*>& credit_cards,
Profile *profile) {
+ // 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
autoFillProfiles:profiles
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/views/autofill_profiles_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698