Index: chrome/browser/net/http_server_properties_manager.cc |
diff --git a/chrome/browser/net/http_server_properties_manager.cc b/chrome/browser/net/http_server_properties_manager.cc |
index 94e4e02598363a8525aa7fcc3bcd5c377ef2c8e1..02a173fab5ab6869ec21a7ab2285af792beaa6aa 100644 |
--- a/chrome/browser/net/http_server_properties_manager.cc |
+++ b/chrome/browser/net/http_server_properties_manager.cc |
@@ -636,16 +636,12 @@ void HttpServerPropertiesManager::UpdatePrefsOnUI( |
setting_prefs_ = false; |
} |
-void HttpServerPropertiesManager::Observe( |
- int type, |
- const content::NotificationSource& source, |
- const content::NotificationDetails& details) { |
+void HttpServerPropertiesManager::OnPreferenceChanged( |
+ PrefServiceBase* prefs, |
+ const std::string& pref_name) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- DCHECK(type == chrome::NOTIFICATION_PREF_CHANGED); |
- PrefService* prefs = content::Source<PrefService>(source).ptr(); |
DCHECK(prefs == pref_service_); |
- std::string* pref_name = content::Details<std::string>(details).ptr(); |
- if (*pref_name == prefs::kHttpServerProperties) { |
+ if (pref_name == prefs::kHttpServerProperties) { |
if (!setting_prefs_) |
ScheduleUpdateCacheOnUI(); |
} else { |