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 |