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

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

Issue 205813002: Separate storage for protected preferences into Protected Preferences file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pp4_profile_pref_store
Patch Set: Pre-review. Created 6 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
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_hash_filter.cc » ('j') | chrome/browser/prefs/pref_hash_filter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_hash_filter.h
diff --git a/chrome/browser/prefs/pref_hash_filter.h b/chrome/browser/prefs/pref_hash_filter.h
index 753293c2980c8848c639f563e882d7b619a9e9a0..ff53cf466a3d285df76a418cce37ef8d0c10c423 100644
--- a/chrome/browser/prefs/pref_hash_filter.h
+++ b/chrome/browser/prefs/pref_hash_filter.h
@@ -19,6 +19,7 @@
#include "chrome/browser/prefs/tracked/tracked_preference.h"
class PrefService;
+class PersistentPrefStore;
class PrefStore;
namespace base {
@@ -83,6 +84,13 @@ class PrefHashFilter : public PrefFilter {
// |pref_store|.
void Initialize(const PrefStore& pref_store);
+ // Migrates protected values from |source| to |destination|. Values are
+ // migrated if they are protected according to this filter's configuration,
+ // the corresponding key has no value in |destination|, and the value in
+ // |source| is trusted according to this filter's PrefHashStore.
robertshield 2014/03/25 03:05:12 This will also unconditionally remove tracked pref
erikwright (departed) 2014/03/25 20:28:26 Done.
+ void MigrateValues(PersistentPrefStore* source,
+ PersistentPrefStore* destination);
+
// PrefFilter implementation.
virtual void FilterOnLoad(base::DictionaryValue* pref_store_contents)
OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/prefs/pref_hash_filter.cc » ('j') | chrome/browser/prefs/pref_hash_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698