summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/pref_model_associator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/prefs/pref_model_associator.cc')
-rw-r--r--chrome/browser/prefs/pref_model_associator.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/prefs/pref_model_associator.cc b/chrome/browser/prefs/pref_model_associator.cc
index 4f06c19..45d4332 100644
--- a/chrome/browser/prefs/pref_model_associator.cc
+++ b/chrome/browser/prefs/pref_model_associator.cc
@@ -376,6 +376,11 @@ bool PrefModelAssociator::IsPrefRegistered(const char* name) {
return registered_preferences_.count(name) > 0;
}
+void PrefModelAssociator::UnregisterPref(const char* name) {
+ DCHECK(synced_preferences_.count(name) == 0);
+ registered_preferences_.erase(name);
+}
+
void PrefModelAssociator::ProcessPrefChange(const std::string& name) {
if (processing_syncer_changes_)
return; // These are changes originating from us, ignore.