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

Unified Diff: services/preferences/pref_store_manager_impl.h

Issue 2759413002: Move PrefStoreManagerImpl into //services/preferences. (Closed)
Patch Set: Update newly-added test. 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
Index: services/preferences/pref_store_manager_impl.h
diff --git a/services/preferences/public/cpp/pref_store_manager_impl.h b/services/preferences/pref_store_manager_impl.h
similarity index 90%
rename from services/preferences/public/cpp/pref_store_manager_impl.h
rename to services/preferences/pref_store_manager_impl.h
index 0e9edebfa06af12102f5a8354ff66bd6ed86ec88..c9f56562c0f5f33874ce2834595e509f6538a5c5 100644
--- a/services/preferences/public/cpp/pref_store_manager_impl.h
+++ b/services/preferences/pref_store_manager_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_PREFERENCES_PUBLIC_CPP_PREF_STORE_MANAGER_IMPL_H_
-#define SERVICES_PREFERENCES_PUBLIC_CPP_PREF_STORE_MANAGER_IMPL_H_
+#ifndef SERVICES_PREFERENCES_PREF_STORE_MANAGER_IMPL_H_
+#define SERVICES_PREFERENCES_PREF_STORE_MANAGER_IMPL_H_
#include <memory>
#include <set>
@@ -41,12 +41,11 @@ class PrefStoreManagerImpl
public service_manager::InterfaceFactory<mojom::PrefServiceControl>,
public service_manager::Service {
public:
- using PrefStoreTypes = std::set<PrefValueStore::PrefStoreType>;
-
// Only replies to Connect calls when all |expected_pref_stores| have
// registered.
- PrefStoreManagerImpl(PrefStoreTypes expected_pref_stores,
- scoped_refptr<base::SequencedWorkerPool> worker_pool);
+ PrefStoreManagerImpl(
+ std::set<PrefValueStore::PrefStoreType> expected_pref_stores,
+ scoped_refptr<base::SequencedWorkerPool> worker_pool);
~PrefStoreManagerImpl() override;
private:
@@ -92,7 +91,7 @@ class PrefStoreManagerImpl
bool AllConnected() const;
// PrefStores that need to register before replying to any Connect calls.
- PrefStoreTypes expected_pref_stores_;
+ std::set<PrefValueStore::PrefStoreType> expected_pref_stores_;
// Registered pref stores.
PrefStorePtrs pref_store_ptrs_;
@@ -120,4 +119,4 @@ class PrefStoreManagerImpl
} // namespace prefs
-#endif // SERVICES_PREFERENCES_PUBLIC_CPP_PREF_STORE_MANAGER_IMPL_H_
+#endif // SERVICES_PREFERENCES_PREF_STORE_MANAGER_IMPL_H_
« no previous file with comments | « services/preferences/pref_service_factory_unittest.cc ('k') | services/preferences/pref_store_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698