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

Unified Diff: chrome/browser/prefs/profile_pref_store_manager.h

Issue 2746023002: Pref service: enable for user prefs in chrome behind a flag. (Closed)
Patch Set: no, the other pref service 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: chrome/browser/prefs/profile_pref_store_manager.h
diff --git a/chrome/browser/prefs/profile_pref_store_manager.h b/chrome/browser/prefs/profile_pref_store_manager.h
index c79ef0b012208d333caecad642f4c34eccb0803e..ebd270fd88d4a0a9f0db30b544c1c4502e48a932 100644
--- a/chrome/browser/prefs/profile_pref_store_manager.h
+++ b/chrome/browser/prefs/profile_pref_store_manager.h
@@ -19,6 +19,7 @@
class HashStoreContents;
class PersistentPrefStore;
class PrefHashStore;
+class PrefRegistry;
class PrefService;
namespace base {
@@ -32,6 +33,10 @@ class TrackedPreferenceValidationDelegate;
}
}
+namespace service_manager {
+class Connector;
+}
+
namespace user_prefs {
class PrefRegistrySyncable;
} // namespace user_prefs
@@ -91,7 +96,9 @@ class ProfilePrefStoreManager {
PersistentPrefStore* CreateProfilePrefStore(
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
const base::Closure& on_reset_on_load,
- prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate);
+ prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate,
+ service_manager::Connector* connector,
+ scoped_refptr<PrefRegistry> pref_registry);
// Initializes the preferences for the managed profile with the preference
// values in |master_prefs|. Acts synchronously, including blocking IO.
@@ -118,6 +125,10 @@ class ProfilePrefStoreManager {
std::pair<std::unique_ptr<PrefHashStore>, std::unique_ptr<HashStoreContents>>
GetExternalVerificationPrefHashStorePair();
+ // Connects to the pref service over mojo and configures it.
+ void ConfigurePrefService(const base::Closure& on_reset_on_load,
+ service_manager::Connector* connector);
+
const base::FilePath profile_path_;
const std::vector<PrefHashFilter::TrackedPreferenceMetadata>
tracking_configuration_;
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.cc ('k') | chrome/browser/prefs/profile_pref_store_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698