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

Unified Diff: services/preferences/pref_service_factory_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/profiles/profile_impl.cc ('k') | services/preferences/pref_store_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/preferences/pref_service_factory_unittest.cc
diff --git a/services/preferences/pref_service_factory_unittest.cc b/services/preferences/pref_service_factory_unittest.cc
index b61090eb5ca40dd14ab09a23171785d226a06797..a2a34dd2c1edbee33138bbf1e4fee8fffd7e2d35 100644
--- a/services/preferences/pref_service_factory_unittest.cc
+++ b/services/preferences/pref_service_factory_unittest.cc
@@ -47,9 +47,11 @@ class ServiceTestClient : public service_manager::test::ServiceTestClient,
const std::string& name) override {
if (name == prefs::mojom::kServiceName) {
pref_service_context_.reset(new service_manager::ServiceContext(
- CreatePrefService({PrefValueStore::COMMAND_LINE_STORE,
- PrefValueStore::RECOMMENDED_STORE},
- worker_pool_),
+ CreatePrefService(
+ {PrefValueStore::COMMAND_LINE_STORE,
+ PrefValueStore::RECOMMENDED_STORE, PrefValueStore::USER_STORE,
+ PrefValueStore::DEFAULT_STORE},
+ worker_pool_),
std::move(request)));
}
}
@@ -126,6 +128,7 @@ class PrefServiceFactoryTest : public base::MessageLoop::DestructionObserver,
pref_registry->RegisterIntegerPref(kKey, kInitialValue);
pref_registry->RegisterIntegerPref(kOtherKey, kInitialValue);
ConnectToPrefService(connector(), pref_registry,
+ std::vector<PrefValueStore::PrefStoreType>(),
base::Bind(&PrefServiceFactoryTest::OnCreate,
run_loop.QuitClosure(), &pref_service));
run_loop.Run();
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | services/preferences/pref_store_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698