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

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

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
« no previous file with comments | « chrome/browser/protector/base_prefs_change.cc ('k') | chrome/browser/protector/protected_prefs_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/protected_prefs_watcher.h
diff --git a/chrome/browser/protector/protected_prefs_watcher.h b/chrome/browser/protector/protected_prefs_watcher.h
index 1aaf0300d639bf54d4b1c3b2797cfec05becedc2..269edc363e79929ccb5048cb2673214a67232ac5 100644
--- a/chrome/browser/protector/protected_prefs_watcher.h
+++ b/chrome/browser/protector/protected_prefs_watcher.h
@@ -10,8 +10,8 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/prefs/public/pref_change_registrar.h"
+#include "base/prefs/public/pref_observer.h"
#include "chrome/browser/extensions/extension_prefs.h"
-#include "content/public/browser/notification_observer.h"
class PrefService;
class Profile;
@@ -22,7 +22,7 @@ class Value;
namespace protector {
-class ProtectedPrefsWatcher : public content::NotificationObserver {
+class ProtectedPrefsWatcher : public PrefObserver {
public:
// Current backup version.
static const int kCurrentVersionNumber;
@@ -51,10 +51,9 @@ class ProtectedPrefsWatcher : public content::NotificationObserver {
private:
friend class ProtectedPrefsWatcherTest;
- // content::NotificationObserver overrides:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // PrefObserver overrides:
+ virtual void OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) OVERRIDE;
// Makes sure that all protected prefs have been migrated before starting to
// observe them.
« no previous file with comments | « chrome/browser/protector/base_prefs_change.cc ('k') | chrome/browser/protector/protected_prefs_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698