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

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

Issue 2745563005: Pref service: add support for tracked prefs. (Closed)
Patch Set: 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..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);
};

Powered by Google App Engine
This is Rietveld 408576698