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

Unified Diff: components/user_prefs/tracked/pref_hash_store_impl.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: Add unit and browser tests. GetType => GetUMASuffix Created 4 years, 4 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: components/user_prefs/tracked/pref_hash_store_impl.h
diff --git a/components/user_prefs/tracked/pref_hash_store_impl.h b/components/user_prefs/tracked/pref_hash_store_impl.h
index 4a2520f0d891f71f63a029a372706205f1bc5ab1..e250236093566f5762aef7ad5edc96e8a3f9e18c 100644
--- a/components/user_prefs/tracked/pref_hash_store_impl.h
+++ b/components/user_prefs/tracked/pref_hash_store_impl.h
@@ -16,6 +16,11 @@
class HashStoreContents;
class PrefHashStoreTransaction;
+namespace base {
+class DictionaryValue;
+class Value;
+} // namespace base
+
// Implements PrefHashStoreImpl by storing preference hashes in a
// HashStoreContents.
class PrefHashStoreImpl : public PrefHashStore {
@@ -47,7 +52,14 @@ class PrefHashStoreImpl : public PrefHashStore {
// PrefHashStore implementation.
std::unique_ptr<PrefHashStoreTransaction> BeginTransaction(
- std::unique_ptr<HashStoreContents> storage) override;
+ HashStoreContents* storage) override;
+
+ std::string ComputeMac(const std::string& path,
+ const base::Value* new_value) override;
+
+ std::unique_ptr<base::DictionaryValue> ComputeSplitMacs(
+ const std::string& path,
+ const base::DictionaryValue* split_values) override;
private:
class PrefHashStoreTransactionImpl;

Powered by Google App Engine
This is Rietveld 408576698