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

Unified Diff: services/preferences/pref_service_factory_unittest.cc

Issue 2778733003: Pref service: delete old implementation (Closed)
Patch Set: Fix missed merge Created 3 years, 9 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 | « services/preferences/manifest.json ('k') | services/preferences/public/cpp/BUILD.gn » ('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 7790426d2df669d999bcffbe642e46b54a9968e6..b61090eb5ca40dd14ab09a23171785d226a06797 100644
--- a/services/preferences/pref_service_factory_unittest.cc
+++ b/services/preferences/pref_service_factory_unittest.cc
@@ -45,7 +45,7 @@ class ServiceTestClient : public service_manager::test::ServiceTestClient,
void CreateService(service_manager::mojom::ServiceRequest request,
const std::string& name) override {
- if (name == prefs::mojom::kPrefStoreServiceName) {
+ if (name == prefs::mojom::kServiceName) {
pref_service_context_.reset(new service_manager::ServiceContext(
CreatePrefService({PrefValueStore::COMMAND_LINE_STORE,
PrefValueStore::RECOMMENDED_STORE},
@@ -83,7 +83,7 @@ class PrefServiceFactoryTest : public base::MessageLoop::DestructionObserver,
// Init the pref service (in production Chrome startup would do this.)
mojom::PrefServiceControlPtr control;
- connector()->BindInterface(mojom::kPrefStoreServiceName, &control);
+ connector()->BindInterface(mojom::kServiceName, &control);
auto config = mojom::PersistentPrefStoreConfiguration::New();
config->set_simple_configuration(
mojom::SimplePersistentPrefStoreConfiguration::New(
@@ -92,7 +92,7 @@ class PrefServiceFactoryTest : public base::MessageLoop::DestructionObserver,
above_user_prefs_pref_store_ = new ValueMapPrefStore();
below_user_prefs_pref_store_ = new ValueMapPrefStore();
mojom::PrefStoreRegistryPtr registry;
- connector()->BindInterface(mojom::kPrefStoreServiceName, &registry);
+ connector()->BindInterface(mojom::kServiceName, &registry);
above_user_prefs_impl_ =
PrefStoreImpl::Create(registry.get(), above_user_prefs_pref_store_,
PrefValueStore::COMMAND_LINE_STORE);
« no previous file with comments | « services/preferences/manifest.json ('k') | services/preferences/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698