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 4e32201a5ec94451be34ea3b8b2771a29a447cd5..52253cf250989a2d846ee09bd10c510da09b7bb6 100644 |
--- a/chrome/browser/prefs/profile_pref_store_manager.h |
+++ b/chrome/browser/prefs/profile_pref_store_manager.h |
@@ -32,6 +32,10 @@ class TrackedPreferenceValidationDelegate; |
} |
} |
+namespace service_manager { |
+class Connector; |
+} |
+ |
namespace user_prefs { |
class PrefRegistrySyncable; |
} // namespace user_prefs |
@@ -91,7 +95,9 @@ class ProfilePrefStoreManager { |
PersistentPrefStore* CreateProfilePrefStore( |
scoped_refptr<base::SequencedTaskRunner> io_task_runner, |
const base::Closure& on_reset_on_load, |
- prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate); |
+ std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>* |
+ validation_delegate, |
+ service_manager::Connector* connector); |
// Initializes the preferences for the managed profile with the preference |
// values in |master_prefs|. Acts synchronously, including blocking IO. |
@@ -115,6 +121,13 @@ 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, |
+ std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate> |
+ validation_delegate, |
+ service_manager::Connector* connector); |
+ |
const base::FilePath profile_path_; |
const std::vector<PrefHashFilter::TrackedPreferenceMetadata> |
tracking_configuration_; |