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. |