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

Unified Diff: chrome/browser/extensions/extension_pref_store.h

Issue 5441002: Clean up pref change notification handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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/extension_pref_store.h
diff --git a/chrome/browser/extensions/extension_pref_store.h b/chrome/browser/extensions/extension_pref_store.h
index f1767589a9aee4a67b2dec4814c4e19716e3803f..635af5bb68e9614e539feb1ab12bc8b7ef8ca6eb 100644
--- a/chrome/browser/extensions/extension_pref_store.h
+++ b/chrome/browser/extensions/extension_pref_store.h
@@ -15,10 +15,9 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/stl_util-inl.h"
-#include "chrome/browser/prefs/pref_notifier.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
-#include "chrome/common/pref_store.h"
+#include "chrome/common/pref_store_base.h"
class DictionaryValue;
class Extension;
@@ -30,7 +29,7 @@ class Value;
// proxy settings. A stack of relevant extensions is stored in order of
// their addition to this PrefStore. For each preference, the last-added
// enabled extension that tries to set it overrules any others.
-class ExtensionPrefStore : public PrefStore,
+class ExtensionPrefStore : public PrefStoreBase,
public NotificationObserver {
battre (please use the other) 2010/12/02 10:41:19 ExtensionPrefStore will be replaced by something c
Mattias Nissler (ping if slow) 2010/12/02 16:38:24 I treat this as an FYI even though I already knew
public:
// Maps preference paths to their values.
@@ -43,7 +42,7 @@ class ExtensionPrefStore : public PrefStore,
typedef std::pair<const Extension*, std::pair<const char*, Value*> >
ExtensionPrefDetails;
- ExtensionPrefStore(Profile* profile, PrefNotifier::PrefStoreType type);
+ ExtensionPrefStore(Profile* profile);
virtual ~ExtensionPrefStore();
// Begins tracking the preference and value an extension wishes to set. This
@@ -67,11 +66,6 @@ class ExtensionPrefStore : public PrefStore,
// This should only be accessed by subclasses for unit-testing.
void GetExtensionIDs(std::vector<std::string>* result);
- // Returns the applicable pref service from the profile (if we have one) or
- // the browser's local state. This should only be accessed or overridden by
- // subclasses for unit-testing.
- virtual PrefService* GetPrefService();
-
private:
// Associates an extension with the prefs it sets. Owns the pref values.
struct ExtensionPrefs {
@@ -115,9 +109,6 @@ class ExtensionPrefStore : public PrefStore,
// extensions.
Profile* profile_;
- // My PrefStore type, assigned by the PrefValueStore.
- PrefNotifier::PrefStoreType type_;
-
DISALLOW_COPY_AND_ASSIGN(ExtensionPrefStore);
};

Powered by Google App Engine
This is Rietveld 408576698