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

Unified Diff: chrome/browser/chromeos/preferences.h

Issue 11345008: Remove content::NotificationObserver dependency from most Prefs code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrefNotifierImpl Created 8 years, 2 months 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/chromeos/preferences.h
diff --git a/chrome/browser/chromeos/preferences.h b/chrome/browser/chromeos/preferences.h
index 93af771e4ed3fbd6c6e1eb15b1dd393d235c40e0..32c7100f4b5b9fbff5e3dfb01028409d53135f0d 100644
--- a/chrome/browser/chromeos/preferences.h
+++ b/chrome/browser/chromeos/preferences.h
@@ -9,9 +9,9 @@
#include <vector>
#include "base/compiler_specific.h"
+#include "base/prefs/public/pref_observer.h"
#include "chrome/browser/api/prefs/pref_member.h"
#include "chrome/browser/chromeos/language_preferences.h"
-#include "content/public/browser/notification_observer.h"
class PrefService;
@@ -24,7 +24,7 @@ class InputMethodManager;
// is first initialized, it will initialize the OS settings to what's stored in
// the preferences. These include touchpad settings, etc.
// When the preferences change, we change the settings to reflect the new value.
-class Preferences : public content::NotificationObserver {
+class Preferences : public PrefObserver {
public:
Preferences();
explicit Preferences(
@@ -37,10 +37,9 @@ class Preferences : public content::NotificationObserver {
// This method will initialize Chrome OS settings to values in user prefs.
void Init(PrefService* prefs);
- // Overridden from content::NotificationObserver:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // Overridden from PrefObserver:
+ virtual void OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) OVERRIDE;
void InitUserPrefsForTesting(PrefService* prefs);
void SetInputMethodListForTesting();

Powered by Google App Engine
This is Rietveld 408576698