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..342df4635177c7ff2836ed55ee963f41aa4072d2 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; |
Bernhard Bauer
2014/03/26 15:05:50
Nit: Move before PrefService
erikwright (departed)
2014/03/26 21:08:12
Done.
|
class PrefStore; |
namespace base { |
@@ -83,6 +84,15 @@ 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. Regardless of |
+ // the state of |destination| or the trust status, the protected values will |
+ // be removed from |source|. |
+ void MigrateValues(PersistentPrefStore* source, |
+ PersistentPrefStore* destination); |
+ |
// PrefFilter implementation. |
virtual void FilterOnLoad(base::DictionaryValue* pref_store_contents) |
OVERRIDE; |