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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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/test/base/testing_profile.h ('k') | chrome/test/reliability/page_load_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 1d2a6f66eb25edc23717a97717f0028336d96de8..0a4301b1ee2f1a1e6416ec4886af1aed9e4d220d 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -206,7 +206,7 @@ TestingProfile::TestingProfile(
const FilePath& path,
Delegate* delegate,
scoped_refptr<ExtensionSpecialStoragePolicy> extension_policy,
- scoped_ptr<PrefService> prefs)
+ scoped_ptr<PrefServiceSyncable> prefs)
: start_time_(Time::Now()),
prefs_(prefs.release()),
testing_prefs_(NULL),
@@ -474,7 +474,7 @@ scoped_refptr<base::SequencedTaskRunner> TestingProfile::GetIOTaskRunner() {
return MessageLoop::current()->message_loop_proxy();
}
-TestingPrefService* TestingProfile::GetTestingPrefService() {
+TestingPrefServiceSyncable* TestingProfile::GetTestingPrefService() {
if (!prefs_.get())
CreateTestingPrefService();
DCHECK(testing_prefs_);
@@ -553,19 +553,19 @@ policy::PolicyService* TestingProfile::GetPolicyService() {
return policy_service_.get();
}
-void TestingProfile::SetPrefService(PrefService* prefs) {
+void TestingProfile::SetPrefService(PrefServiceSyncable* prefs) {
prefs_.reset(prefs);
}
void TestingProfile::CreateTestingPrefService() {
DCHECK(!prefs_.get());
- testing_prefs_ = new TestingPrefService();
+ testing_prefs_ = new TestingPrefServiceSyncable();
prefs_.reset(testing_prefs_);
Profile::RegisterUserPrefs(prefs_.get());
chrome::RegisterUserPrefs(prefs_.get());
}
-PrefService* TestingProfile::GetPrefs() {
+PrefServiceSyncable* TestingProfile::GetPrefs() {
if (!prefs_.get()) {
CreateTestingPrefService();
}
@@ -751,7 +751,7 @@ GURL TestingProfile::GetHomePage() {
return GURL(chrome::kChromeUINewTabURL);
}
-PrefService* TestingProfile::GetOffTheRecordPrefs() {
+PrefServiceSyncable* TestingProfile::GetOffTheRecordPrefs() {
return NULL;
}
@@ -793,7 +793,8 @@ void TestingProfile::Builder::SetExtensionSpecialStoragePolicy(
extension_policy_ = policy;
}
-void TestingProfile::Builder::SetPrefService(scoped_ptr<PrefService> prefs) {
+void TestingProfile::Builder::SetPrefService(
+ scoped_ptr<PrefServiceSyncable> prefs) {
pref_service_ = prefs.Pass();
}
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | chrome/test/reliability/page_load_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698