Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3794)

Unified Diff: chrome/browser/protector/protected_prefs_watcher.cc

Issue 11345008: Remove content::NotificationObserver dependency from most Prefs code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/protector/protected_prefs_watcher.cc
diff --git a/chrome/browser/protector/protected_prefs_watcher.cc b/chrome/browser/protector/protected_prefs_watcher.cc
index b98438dce2f632d0dac760cf81d072b967bb79b5..ed13224ae40ae417f1299706a5ea1ee236ee8dd0 100644
--- a/chrome/browser/protector/protected_prefs_watcher.cc
+++ b/chrome/browser/protector/protected_prefs_watcher.cc
@@ -195,14 +195,10 @@ void ProtectedPrefsWatcher::ForceUpdateBackup() {
InitBackup();
}
-void ProtectedPrefsWatcher::Observe(
- int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
- DCHECK(type == chrome::NOTIFICATION_PREF_CHANGED);
- const std::string* pref_name = content::Details<std::string>(details).ptr();
- DCHECK(pref_name && pref_observer_.IsObserved(*pref_name));
- if (UpdateBackupEntry(*pref_name))
+void ProtectedPrefsWatcher::OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) {
+ DCHECK(pref_observer_.IsObserved(pref_name));
+ if (UpdateBackupEntry(pref_name))
UpdateBackupSignature();
}
« no previous file with comments | « chrome/browser/protector/protected_prefs_watcher.h ('k') | chrome/browser/safe_browsing/safe_browsing_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698