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

Unified Diff: components/prefs/value_map_pref_store.cc

Issue 2474653003: PreferencesManager (Closed)
Patch Set: Update mojom to support separate subscriptions Created 4 years, 1 month 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/prefs/value_map_pref_store.cc
diff --git a/components/prefs/value_map_pref_store.cc b/components/prefs/value_map_pref_store.cc
index 8b828b10d5c628cdc6b2bb9333269e0746554046..5feaccc364bfc5f619534079a9fec5a7cd00d4d7 100644
--- a/components/prefs/value_map_pref_store.cc
+++ b/components/prefs/value_map_pref_store.cc
@@ -64,6 +64,10 @@ void ValueMapPrefStore::SetValueSilently(const std::string& key,
ValueMapPrefStore::~ValueMapPrefStore() {}
+void ValueMapPrefStore::ClearObservers() {
+ observers_.Clear();
+}
+
void ValueMapPrefStore::NotifyInitializationCompleted() {
for (Observer& observer : observers_)
observer.OnInitializationCompleted(true);

Powered by Google App Engine
This is Rietveld 408576698