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

Unified Diff: chrome/browser/protector/base_prefs_change.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/profiles/profile_impl.cc ('k') | chrome/browser/protector/base_prefs_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/base_prefs_change.h
diff --git a/chrome/browser/protector/base_prefs_change.h b/chrome/browser/protector/base_prefs_change.h
index 79f5b8882aa88661f7e1bff2f3bde6c770c51a6a..ba29d3ad2ace7c7b92bf95d270a61b45e63a3916 100644
--- a/chrome/browser/protector/base_prefs_change.h
+++ b/chrome/browser/protector/base_prefs_change.h
@@ -9,14 +9,14 @@
#include "base/memory/scoped_ptr.h"
#include "base/prefs/public/pref_change_registrar.h"
+#include "base/prefs/public/pref_observer.h"
#include "chrome/browser/protector/base_setting_change.h"
-#include "content/public/browser/notification_observer.h"
namespace protector {
// BaseSettingChange subclass for PrefService-managed settings changes.
class BasePrefsChange : public BaseSettingChange,
- public content::NotificationObserver {
+ public PrefObserver {
public:
BasePrefsChange();
virtual ~BasePrefsChange();
@@ -35,10 +35,9 @@ class BasePrefsChange : public BaseSettingChange,
void IgnorePrefChanges();
private:
- // 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;
PrefChangeRegistrar pref_observer_;
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/protector/base_prefs_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698