| Index: chrome/browser/ui/webui/options/content_settings_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
|
| index 80d00ace82b7918bb279da8be87ccfd086dfb475..a79c0d0aee87e21c71b91091b7d955c709d11f79 100644
|
| --- a/chrome/browser/ui/webui/options/content_settings_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
|
| @@ -488,8 +488,15 @@ void ContentSettingsHandler::InitializeHandler() {
|
|
|
| PrefService* prefs = profile->GetPrefs();
|
| pref_change_registrar_.Init(prefs);
|
| - pref_change_registrar_.Add(prefs::kGeolocationContentSettings, this);
|
| - pref_change_registrar_.Add(prefs::kPepperFlashSettingsEnabled, this);
|
| + pref_change_registrar_.Add(
|
| + prefs::kGeolocationContentSettings,
|
| + base::Bind(&ContentSettingsHandler::UpdateGeolocationExceptionsView,
|
| + base::Unretained(this)));
|
| + pref_change_registrar_.Add(
|
| + prefs::kPepperFlashSettingsEnabled,
|
| + base::Bind(&ContentSettingsHandler::RefreshFlashSettingsCache,
|
| + base::Unretained(this),
|
| + false));
|
|
|
| flash_settings_manager_.reset(new PepperFlashSettingsManager(this, profile));
|
| }
|
| @@ -557,14 +564,6 @@ void ContentSettingsHandler::Observe(
|
| }
|
| }
|
|
|
| -void ContentSettingsHandler::OnPreferenceChanged(PrefServiceBase* service,
|
| - const std::string& pref_name) {
|
| - if (pref_name == prefs::kGeolocationContentSettings)
|
| - UpdateGeolocationExceptionsView();
|
| - else if (pref_name == prefs::kPepperFlashSettingsEnabled)
|
| - RefreshFlashSettingsCache(false);
|
| -}
|
| -
|
| void ContentSettingsHandler::OnGetPermissionSettingsCompleted(
|
| uint32 request_id,
|
| bool success,
|
|
|