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

Unified Diff: components/user_prefs/tracked/registry_hash_store_contents_win.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/registry_hash_store_contents_win.h
diff --git a/components/user_prefs/tracked/registry_hash_store_contents_win.h b/components/user_prefs/tracked/registry_hash_store_contents_win.h
index 580240f1b3b1085aefb4d3c248a76d9af4bc1d03..7d1db05fbedb1a3a261386582a43cabed64deaa4 100644
--- a/components/user_prefs/tracked/registry_hash_store_contents_win.h
+++ b/components/user_prefs/tracked/registry_hash_store_contents_win.h
@@ -18,6 +18,8 @@ class RegistryHashStoreContentsWin : public HashStoreContents {
const base::string16& profile_name);
// HashStoreContents overrides:
+ std::unique_ptr<HashStoreContents> MakeCopy() const override;
+ std::string GetUMASuffix() const override;
void Reset() override;
bool GetMac(const std::string& path, std::string* out_value) override;
bool GetSplitMacs(const std::string& path,
@@ -36,6 +38,10 @@ class RegistryHashStoreContentsWin : public HashStoreContents {
void SetSuperMac(const std::string& super_mac) override;
private:
+ // Helper constructor for |MakeCopy|.
+ explicit RegistryHashStoreContentsWin(
+ const base::string16& preference_key_name);
+
const base::string16 preference_key_name_;
DISALLOW_COPY_AND_ASSIGN(RegistryHashStoreContentsWin);

Powered by Google App Engine
This is Rietveld 408576698