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..abbd50a6e90ddd3e6e87833e2c2c725fd3d57bf7 100644 |
--- a/chrome/browser/prefs/profile_pref_store_manager.h |
+++ b/chrome/browser/prefs/profile_pref_store_manager.h |
@@ -15,6 +15,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "components/user_prefs/tracked/pref_hash_filter.h" |
+#include "services/preferences/public/interfaces/preferences_configuration.mojom.h" |
class HashStoreContents; |
class PersistentPrefStore; |
@@ -54,8 +55,7 @@ class ProfilePrefStoreManager { |
tracking_configuration, |
size_t reporting_ids_count, |
const std::string& seed, |
- const std::string& legacy_device_id, |
- PrefService* local_state); |
+ const std::string& legacy_device_id); |
~ProfilePrefStoreManager(); |
@@ -89,7 +89,7 @@ class ProfilePrefStoreManager { |
// An optional |validation_delegate| will be notified |
// of the status of each tracked preference as they are checked. |
PersistentPrefStore* CreateProfilePrefStore( |
- const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, |
+ scoped_refptr<base::SequencedTaskRunner> io_task_runner, |
const base::Closure& on_reset_on_load, |
prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate); |
@@ -105,26 +105,21 @@ class ProfilePrefStoreManager { |
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); |
private: |
- // Returns a PrefHashStore for the managed profile. Should only be called |
- // if |kPlatformSupportsPreferenceTracking|. |use_super_mac| determines |
- // whether the returned object will calculate, store, and validate super MACs |
- // (and, by extension, accept non-null newly protected preferences as |
- // TrustedInitialized). |
- std::unique_ptr<PrefHashStore> GetPrefHashStore(bool use_super_mac); |
- |
// Returns a PrefHashStore and HashStoreContents which can be be used for |
// extra out-of-band verifications, or nullptrs if not available on this |
// platform. |
std::pair<std::unique_ptr<PrefHashStore>, std::unique_ptr<HashStoreContents>> |
GetExternalVerificationPrefHashStorePair(); |
+ prefs::mojom::TrackedPersistentPrefStoreConfigurationPtr |
+ CreateTrackedPrefsConfiguration(); |
+ |
const base::FilePath profile_path_; |
const std::vector<PrefHashFilter::TrackedPreferenceMetadata> |
tracking_configuration_; |
const size_t reporting_ids_count_; |
const std::string seed_; |
const std::string legacy_device_id_; |
- PrefService* local_state_; |
DISALLOW_COPY_AND_ASSIGN(ProfilePrefStoreManager); |
}; |