| Index: chrome/browser/gtk/options/content_page_gtk.cc
|
| diff --git a/chrome/browser/gtk/options/content_page_gtk.cc b/chrome/browser/gtk/options/content_page_gtk.cc
|
| index 4d86fbd2684fe81673439069434de1d316fcd45a..1532e2cbcff944c2910fc670a0edd5793b64da8a 100644
|
| --- a/chrome/browser/gtk/options/content_page_gtk.cc
|
| +++ b/chrome/browser/gtk/options/content_page_gtk.cc
|
| @@ -98,6 +98,14 @@ ContentPageGtk::ContentPageGtk(Profile* profile)
|
| UpdateSyncControls();
|
| }
|
|
|
| + // Add preferences observers.
|
| + ask_to_save_passwords_.Init(prefs::kPasswordManagerEnabled,
|
| + profile->GetPrefs(), this);
|
| + if (browser_defaults::kCanToggleSystemTitleBar) {
|
| + use_custom_chrome_frame_.Init(prefs::kUseCustomChromeFrame,
|
| + profile->GetPrefs(), this);
|
| + }
|
| +
|
| options_builder->AddOptionGroup(
|
| l10n_util::GetStringUTF8(IDS_OPTIONS_PASSWORDS_GROUP_NAME),
|
| InitPasswordSavingGroup(), false);
|
| @@ -114,15 +122,6 @@ ContentPageGtk::ContentPageGtk(Profile* profile)
|
| InitThemesGroup(), false);
|
| page_ = options_builder->get_page_widget();
|
|
|
| - // Add preferences observers.
|
| - ask_to_save_passwords_.Init(prefs::kPasswordManagerEnabled,
|
| - profile->GetPrefs(), this);
|
| -
|
| - if (browser_defaults::kCanToggleSystemTitleBar) {
|
| - use_custom_chrome_frame_.Init(prefs::kUseCustomChromeFrame,
|
| - profile->GetPrefs(), this);
|
| - }
|
| -
|
| // Load initial values.
|
| NotifyPrefChanged(NULL);
|
|
|
|
|