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

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: Don't require clients to specify the default store, but allow it 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
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..c960e169e2c5aacee2e9192d986c19d11e26297c 100644
--- a/services/preferences/pref_service_factory_unittest.cc
+++ b/services/preferences/pref_service_factory_unittest.cc
@@ -48,7 +48,8 @@ class ServiceTestClient : public service_manager::test::ServiceTestClient,
if (name == prefs::mojom::kServiceName) {
pref_service_context_.reset(new service_manager::ServiceContext(
CreatePrefService({PrefValueStore::COMMAND_LINE_STORE,
- PrefValueStore::RECOMMENDED_STORE},
+ PrefValueStore::RECOMMENDED_STORE,
+ PrefValueStore::DEFAULT_STORE},
worker_pool_),
std::move(request)));
}
@@ -126,6 +127,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();

Powered by Google App Engine
This is Rietveld 408576698