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

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

Issue 151003004: Add an automatic settings reset banner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pre-review cleanup. Created 6 years, 10 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/pref_hash_filter.h
diff --git a/chrome/browser/prefs/pref_hash_filter.h b/chrome/browser/prefs/pref_hash_filter.h
index 38caa89494c46290e20f30180868c4d00ead0e24..41feec2fb081f9627ae41521982ea91c1de885f6 100644
--- a/chrome/browser/prefs/pref_hash_filter.h
+++ b/chrome/browser/prefs/pref_hash_filter.h
@@ -17,6 +17,7 @@
#include "chrome/browser/prefs/pref_hash_store.h"
#include "chrome/browser/prefs/tracked/tracked_preference.h"
+class PrefRegistrySimple;
class PrefStore;
namespace base {
@@ -74,6 +75,9 @@ class PrefHashFilter : public PrefFilter {
virtual ~PrefHashFilter();
+ // Registers required local state preferences.
+ static void RegisterPrefs(PrefRegistrySimple* registry);
+
// Initializes the PrefHashStore with hashes of the tracked preferences
// in |pref_store|.
void Initialize(PrefStore* pref_store);
@@ -85,6 +89,11 @@ class PrefHashFilter : public PrefFilter {
virtual void FilterSerializeData(
const base::DictionaryValue* pref_store_contents) OVERRIDE;
+ protected:
+ // Called when it is determined that a reset event has occurred. Exposed as
+ // protected for testing.
+ virtual void WriteResetEvent();
erikwright (departed) 2014/02/06 20:04:03 Use a callback instead. Isolates the global state
robertshield 2014/02/07 04:36:19 Ok. Was torn between that and preserving all pref
+
private:
// A map of paths to TrackedPreferences; this map owns this individual
// TrackedPreference objects.

Powered by Google App Engine
This is Rietveld 408576698