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

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

Issue 2204943002: Integrate registry_hash_store_contents with the rest of tracked prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and added important_file_writer CL as dependent patchset Created 4 years, 3 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 70af00b8b27be0c923c7871dcfec73b68acbc5e5..31486136c2c63639afd7b8a4ad2396774ad7e6ef 100644
--- a/chrome/browser/prefs/profile_pref_store_manager.h
+++ b/chrome/browser/prefs/profile_pref_store_manager.h
@@ -16,6 +16,7 @@
#include "base/memory/ref_counted.h"
#include "components/user_prefs/tracked/pref_hash_filter.h"
+class HashStoreContents;
class PersistentPrefStore;
class PrefHashStore;
class PrefService;
@@ -70,6 +71,14 @@ class ProfilePrefStoreManager {
// was built by ProfilePrefStoreManager.
static void ClearResetTime(PrefService* pref_service);
+#if defined(OS_WIN)
+ // Call before startup tasks kick in to use a different registry path for
+ // storing and validating tracked preference MACs. Callers are responsible
+ // for ensuring that the key is deleted on shutdown. For testing only.
+ static void SetPreferenceValidationRegistryPathForTesting(
+ const base::string16& path);
+#endif
+
// Creates a PersistentPrefStore providing access to the user preferences of
// the managed profile. If |on_reset| is provided, it will be invoked if a
// reset occurs as a result of loading the profile's prefs.
@@ -99,6 +108,11 @@ class ProfilePrefStoreManager {
// 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 NULL if not available on this platform.
gab 2016/09/16 19:47:32 s/NULL/null/ is the chromium-style as of C++11 whe
proberge 2016/09/20 21:35:44 Done.
+ std::pair<std::unique_ptr<PrefHashStore>, std::unique_ptr<HashStoreContents>>*
+ ProfilePrefStoreManager::GetExternalVerificationPrefHashStorePair();
+
const base::FilePath profile_path_;
const std::vector<PrefHashFilter::TrackedPreferenceMetadata>
tracking_configuration_;
« no previous file with comments | « no previous file | chrome/browser/prefs/profile_pref_store_manager.cc » ('j') | chrome/browser/prefs/profile_pref_store_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698