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

Unified Diff: services/preferences/public/cpp/tests/pref_store_client_unittest.cc

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/tests/pref_store_client_unittest.cc
diff --git a/services/preferences/public/cpp/tests/pref_store_client_unittest.cc b/services/preferences/public/cpp/tests/pref_store_client_unittest.cc
index 6a488a16b5935c3e7451fea9f4720a67a6078706..dbf86d41650d6a7ab3255e6567dc9738dfa4583a 100644
--- a/services/preferences/public/cpp/tests/pref_store_client_unittest.cc
+++ b/services/preferences/public/cpp/tests/pref_store_client_unittest.cc
@@ -40,7 +40,9 @@ class PrefStoreClientTest : public testing::Test {
bool initialized() { return store_->IsInitializationComplete(); }
void OnPrefChanged(const std::string& key, const base::Value& value) {
- observer_ptr_->OnPrefChanged(key, value.CreateDeepCopy());
+ std::vector<mojom::PrefUpdatePtr> updates;
+ updates.push_back(mojom::PrefUpdate::New(key, value.CreateDeepCopy(), 0));
+ observer_ptr_->OnPrefsChanged(std::move(updates));
}
void OnInitializationCompleted() {
observer_ptr_->OnInitializationCompleted(true);
« no previous file with comments | « services/preferences/public/cpp/pref_store_impl.cc ('k') | services/preferences/public/interfaces/preferences.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698