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

Unified Diff: chrome/browser/prefs/profile_pref_store_manager_unittest.cc

Issue 2791903003: Pref service: have Mash and Chrome connect to the right pref stores (Closed)
Patch Set: ProfilePrefStoreManagerTest: explicit list stores to connect to Created 3 years, 8 months 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/browser/prefs/profile_pref_store_manager.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/profile_pref_store_manager_unittest.cc
diff --git a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
index f729fe309bac6e66890be6704f39eb8bc767741b..eb73846023e1478a1f047bb83bdd327d95dda1e0 100644
--- a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
+++ b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
@@ -153,8 +153,10 @@ class ProfilePrefStoreManagerTest : public testing::TestWithParam<bool> {
feature_list_.InitAndEnableFeature(features::kPrefService);
service_manager::mojom::ServicePtr service_ptr;
pref_service_context_ = base::MakeUnique<service_manager::ServiceContext>(
- prefs::CreatePrefService(std::set<PrefValueStore::PrefStoreType>(),
- worker_pool_->pool()),
+ prefs::CreatePrefService(
+ std::set<PrefValueStore::PrefStoreType>(
+ {PrefValueStore::USER_STORE, PrefValueStore::DEFAULT_STORE}),
+ worker_pool_->pool()),
mojo::MakeRequest(&service_ptr));
connector_ = service_manager::Connector::Create(&connector_request_);
service_manager::Connector::TestApi test_api(connector_.get());
@@ -228,8 +230,10 @@ class ProfilePrefStoreManagerTest : public testing::TestWithParam<bool> {
service_manager::mojom::ServicePtr service_ptr;
pref_service_context_ = base::MakeUnique<service_manager::ServiceContext>(
- prefs::CreatePrefService(std::set<PrefValueStore::PrefStoreType>(),
- worker_pool_->pool()),
+ prefs::CreatePrefService(
+ std::set<PrefValueStore::PrefStoreType>(
+ {PrefValueStore::USER_STORE, PrefValueStore::DEFAULT_STORE}),
+ worker_pool_->pool()),
mojo::MakeRequest(&service_ptr));
}
« no previous file with comments | « chrome/browser/prefs/profile_pref_store_manager.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698