summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 16:28:20 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 16:28:20 +0000
commitfb8fdf159a6ececb089c01908e509bfca98a068f (patch)
treed050270ad8f761fb09e195a62318b2c833e18e4d /chrome/browser/profiles
parentd1a494af361712b4b443856dbf2fd0cce82c1338 (diff)
downloadchromium_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/profiles')
-rw-r--r--chrome/browser/profiles/gaia_info_update_service.cc6
-rw-r--r--chrome/browser/profiles/gaia_info_update_service.h2
-rw-r--r--chrome/browser/profiles/off_the_record_profile_io_data.cc1
-rw-r--r--chrome/browser/profiles/profile_impl_io_data.cc1
4 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/profiles/gaia_info_update_service.cc b/chrome/browser/profiles/gaia_info_update_service.cc
index ec4fe5b..efd5188 100644
--- a/chrome/browser/profiles/gaia_info_update_service.cc
+++ b/chrome/browser/profiles/gaia_info_update_service.cc
@@ -76,11 +76,11 @@ bool GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(Profile* profile) {
}
// static
-void GAIAInfoUpdateService::RegisterUserPrefs(PrefService* prefs) {
+void GAIAInfoUpdateService::RegisterUserPrefs(PrefServiceBase* prefs) {
prefs->RegisterInt64Pref(
- prefs::kProfileGAIAInfoUpdateTime, 0, PrefService::UNSYNCABLE_PREF);
+ prefs::kProfileGAIAInfoUpdateTime, 0, PrefServiceBase::UNSYNCABLE_PREF);
prefs->RegisterStringPref(
- prefs::kProfileGAIAInfoPictureURL, "", PrefService::UNSYNCABLE_PREF);
+ prefs::kProfileGAIAInfoPictureURL, "", PrefServiceBase::UNSYNCABLE_PREF);
}
bool GAIAInfoUpdateService::NeedsProfilePicture() const {
diff --git a/chrome/browser/profiles/gaia_info_update_service.h b/chrome/browser/profiles/gaia_info_update_service.h
index a4b289b..7129328 100644
--- a/chrome/browser/profiles/gaia_info_update_service.h
+++ b/chrome/browser/profiles/gaia_info_update_service.h
@@ -32,7 +32,7 @@ class GAIAInfoUpdateService : public ProfileDownloaderDelegate,
static bool ShouldUseGAIAProfileInfo(Profile* profile);
// Register prefs for a profile.
- static void RegisterUserPrefs(PrefService* prefs);
+ static void RegisterUserPrefs(PrefServiceBase* prefs);
// ProfileDownloaderDelegate:
virtual bool NeedsProfilePicture() const OVERRIDE;
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index d9fc22e..615c030 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/chrome_url_request_context.h"
+#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
#include "chrome/common/chrome_switches.h"
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index f82ab2f..d71357a 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/net/sqlite_persistent_cookie_store.h"
#include "chrome/browser/net/sqlite_server_bound_cert_store.h"
+#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
#include "chrome/common/chrome_constants.h"