Index: chrome/browser/autofill/autofill_dialog_gtk.cc |
=================================================================== |
--- chrome/browser/autofill/autofill_dialog_gtk.cc (revision 42037) |
+++ chrome/browser/autofill/autofill_dialog_gtk.cc (working copy) |
@@ -18,7 +18,9 @@ |
#include "chrome/browser/autofill/personal_data_manager.h" |
#include "chrome/browser/gtk/gtk_util.h" |
#include "chrome/browser/gtk/options/options_layout_gtk.h" |
+#include "chrome/browser/pref_service.h" |
#include "chrome/browser/profile.h" |
+#include "chrome/common/pref_names.h" |
#include "gfx/gtk_util.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
@@ -897,6 +899,11 @@ |
void ShowAutoFillDialog(gfx::NativeWindow parent, |
AutoFillDialogObserver* observer, |
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); |
+ |
if (!dialog) { |
dialog = new AutoFillDialog(observer, |
profile->GetPersonalDataManager()->profiles(), |