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

Unified Diff: chrome/browser/extensions/component_loader.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
Index: chrome/browser/extensions/component_loader.h
diff --git a/chrome/browser/extensions/component_loader.h b/chrome/browser/extensions/component_loader.h
index 8c68775ad5e9674353ee37fb949e3ebd6c135a6b..beb2e6ba9e26698a016035c61c82210e9cac9e30 100644
--- a/chrome/browser/extensions/component_loader.h
+++ b/chrome/browser/extensions/component_loader.h
@@ -11,8 +11,8 @@
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
#include "base/prefs/public/pref_change_registrar.h"
+#include "base/prefs/public/pref_observer.h"
#include "base/values.h"
-#include "content/public/browser/notification_observer.h"
class ExtensionServiceInterface;
class PrefService;
@@ -22,7 +22,7 @@ namespace extensions {
class Extension;
// For registering, loading, and unloading component extensions.
-class ComponentLoader : public content::NotificationObserver {
+class ComponentLoader : public PrefObserver {
public:
ComponentLoader(ExtensionServiceInterface* extension_service,
PrefService* prefs,
@@ -69,10 +69,9 @@ class ComponentLoader : public content::NotificationObserver {
// Adds the default component extensions.
void AddDefaultComponentExtensions();
- // content::NotificationObserver implementation
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // PrefObserver implementation
+ virtual void OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) OVERRIDE;
static void RegisterUserPrefs(PrefService* prefs);
« no previous file with comments | « chrome/browser/extensions/api/preference/preference_api.cc ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698