| Index: chrome/browser/ui/webui/options/core_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/core_options_handler.cc b/chrome/browser/ui/webui/options/core_options_handler.cc
|
| index ea50be9b72e6d8223244400181195b9d1ba6fbbb..8e14ea1df858665de4a9063ac193524f3063a194 100644
|
| --- a/chrome/browser/ui/webui/options/core_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/core_options_handler.cc
|
| @@ -135,22 +135,18 @@ void CoreOptionsHandler::Uninitialize() {
|
| }
|
| }
|
|
|
| -void CoreOptionsHandler::Observe(int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) {
|
| - if (type == chrome::NOTIFICATION_PREF_CHANGED) {
|
| - std::string* pref_name = content::Details<std::string>(details).ptr();
|
| - if (*pref_name == prefs::kClearPluginLSODataEnabled) {
|
| - // This preference is stored in Local State, not in the user preferences.
|
| - UpdateClearPluginLSOData();
|
| - return;
|
| - }
|
| - if (*pref_name == prefs::kPepperFlashSettingsEnabled) {
|
| - UpdatePepperFlashSettingsEnabled();
|
| - return;
|
| - }
|
| - NotifyPrefChanged(*pref_name, std::string());
|
| +void CoreOptionsHandler::OnPreferenceChanged(PrefServiceBase* service,
|
| + const std::string& pref_name) {
|
| + if (pref_name == prefs::kClearPluginLSODataEnabled) {
|
| + // This preference is stored in Local State, not in the user preferences.
|
| + UpdateClearPluginLSOData();
|
| + return;
|
| + }
|
| + if (pref_name == prefs::kPepperFlashSettingsEnabled) {
|
| + UpdatePepperFlashSettingsEnabled();
|
| + return;
|
| }
|
| + NotifyPrefChanged(pref_name, std::string());
|
| }
|
|
|
| void CoreOptionsHandler::RegisterMessages() {
|
|
|