diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 16:28:20 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 16:28:20 +0000 |
commit | fb8fdf159a6ececb089c01908e509bfca98a068f (patch) | |
tree | d050270ad8f761fb09e195a62318b2c833e18e4d /chrome/browser/api/prefs/pref_member.h | |
parent | d1a494af361712b4b443856dbf2fd0cce82c1338 (diff) | |
download | chromium_src-fb8fdf159a6ececb089c01908e509bfca98a068f.zip chromium_src-fb8fdf159a6ececb089c01908e509bfca98a068f.tar.gz chromium_src-fb8fdf159a6ececb089c01908e509bfca98a068f.tar.bz2 |
Extract PrefServiceBase into chrome/browser/api. Use in api and autofill.
TBR=owners other than for prefs and api, since other changes are trivial and mechanical
BUG=140037
Review URL: https://chromiumcodereview.appspot.com/10828345
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/api/prefs/pref_member.h')
-rw-r--r-- | chrome/browser/api/prefs/pref_member.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/api/prefs/pref_member.h b/chrome/browser/api/prefs/pref_member.h index 7553dce..eb96c17 100644 --- a/chrome/browser/api/prefs/pref_member.h +++ b/chrome/browser/api/prefs/pref_member.h @@ -34,7 +34,7 @@ #include "content/public/browser/browser_thread.h" #include "content/public/browser/notification_observer.h" -class PrefService; +class PrefServiceBase; namespace subtle { @@ -81,7 +81,7 @@ class PrefMemberBase : public content::NotificationObserver { virtual ~PrefMemberBase(); // See PrefMember<> for description. - void Init(const char* pref_name, PrefService* prefs, + void Init(const char* pref_name, PrefServiceBase* prefs, content::NotificationObserver* observer); virtual void CreateInternal() const = 0; @@ -110,8 +110,8 @@ class PrefMemberBase : public content::NotificationObserver { void VerifyPref() const; const std::string& pref_name() const { return pref_name_; } - PrefService* prefs() { return prefs_; } - const PrefService* prefs() const { return prefs_; } + PrefServiceBase* prefs() { return prefs_; } + const PrefServiceBase* prefs() const { return prefs_; } virtual Internal* internal() const = 0; @@ -119,7 +119,7 @@ class PrefMemberBase : public content::NotificationObserver { // Ordered the members to compact the class instance. std::string pref_name_; content::NotificationObserver* observer_; - PrefService* prefs_; + PrefServiceBase* prefs_; protected: bool setting_value_; @@ -138,7 +138,7 @@ class PrefMember : public subtle::PrefMemberBase { // Do the actual initialization of the class. |observer| may be null if you // don't want any notifications of changes. // This method should only be called on the UI thread. - void Init(const char* pref_name, PrefService* prefs, + void Init(const char* pref_name, PrefServiceBase* prefs, content::NotificationObserver* observer) { subtle::PrefMemberBase::Init(pref_name, prefs, observer); } |