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

Unified Diff: services/preferences/public/cpp/pref_store_client_mixin.h

Issue 2791893002: Pref service: Batch pref updates. (Closed)
Patch Set: rebase Created 3 years, 8 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: services/preferences/public/cpp/pref_store_client_mixin.h
diff --git a/services/preferences/public/cpp/pref_store_client_mixin.h b/services/preferences/public/cpp/pref_store_client_mixin.h
index 9d7a5080cb041b348a30ae535e1f51d01c1afdaa..19cf250c586ff1dfbe42c43cc300f21e52c1af00 100644
--- a/services/preferences/public/cpp/pref_store_client_mixin.h
+++ b/services/preferences/public/cpp/pref_store_client_mixin.h
@@ -54,10 +54,12 @@ class PrefStoreClientMixin : public BasePrefStore,
private:
// prefs::mojom::PreferenceObserver:
- void OnPrefChanged(const std::string& key,
- std::unique_ptr<base::Value> value) override;
+ void OnPrefsChanged(std::vector<mojom::PrefUpdatePtr> updates) override;
void OnInitializationCompleted(bool succeeded) override;
+ void OnPrefChanged(const std::string& key,
+ std::unique_ptr<base::Value> value);
+
// Cached preferences.
// If null, indicates that initialization failed.
std::unique_ptr<base::DictionaryValue> cached_prefs_;

Powered by Google App Engine
This is Rietveld 408576698