diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 01:51:05 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 01:51:05 +0000 |
commit | e0d69df606e86f436ac7708de6e221647b9d47fc (patch) | |
tree | 2e29c9becf5492ee7ceb27a41f5da2a48ac11548 /chrome/browser/gtk/options/content_page_gtk.cc | |
parent | 323f13f1d60afc174ce51e3e933dec17774b5c8a (diff) | |
download | chromium_src-e0d69df606e86f436ac7708de6e221647b9d47fc.zip chromium_src-e0d69df606e86f436ac7708de6e221647b9d47fc.tar.gz chromium_src-e0d69df606e86f436ac7708de6e221647b9d47fc.tar.bz2 |
Fix the content page of the options dialog to use kAutoFillEnabled instead of the obsolete kFormAutofillEnabled.
BUG=36640
TEST=none
Review URL: http://codereview.chromium.org/661327
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/content_page_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/options/content_page_gtk.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc index cc6b73f..edbb9fc 100644 --- a/chrome/browser/gtk/options/content_page_gtk.cc +++ b/chrome/browser/gtk/options/content_page_gtk.cc @@ -4,6 +4,8 @@ #include "chrome/browser/gtk/options/content_page_gtk.h" +#include <string> + #include "app/gfx/gtk_util.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" @@ -72,7 +74,7 @@ ContentPageGtk::ContentPageGtk(Profile* profile) // Add preferences observers. ask_to_save_passwords_.Init(prefs::kPasswordManagerEnabled, profile->GetPrefs(), this); - enable_form_autofill_.Init(prefs::kFormAutofillEnabled, + enable_form_autofill_.Init(prefs::kAutoFillEnabled, profile->GetPrefs(), this); if (browser_defaults::kCanToggleSystemTitleBar) { use_custom_chrome_frame_.Init(prefs::kUseCustomChromeFrame, @@ -124,7 +126,7 @@ void ContentPageGtk::NotifyPrefChanged(const std::wstring* pref_name) { GTK_TOGGLE_BUTTON(passwords_neversave_radio_), TRUE); } } - if (!pref_name || *pref_name == prefs::kFormAutofillEnabled) { + if (!pref_name || *pref_name == prefs::kAutoFillEnabled) { if (enable_form_autofill_.GetValue()) { gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(form_autofill_enable_radio_), TRUE); |