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

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

Issue 2812863002: Pref service: Add a ScopedDictionaryPrefUpdate to track value changes. (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 dbf86d41650d6a7ab3255e6567dc9738dfa4583a..8952cbf5c936fbead3d1856bf44013664f10e225 100644
--- a/services/preferences/public/cpp/tests/pref_store_client_unittest.cc
+++ b/services/preferences/public/cpp/tests/pref_store_client_unittest.cc
@@ -41,7 +41,9 @@ class PrefStoreClientTest : public testing::Test {
bool initialized() { return store_->IsInitializationComplete(); }
void OnPrefChanged(const std::string& key, const base::Value& value) {
std::vector<mojom::PrefUpdatePtr> updates;
- updates.push_back(mojom::PrefUpdate::New(key, value.CreateDeepCopy(), 0));
+ updates.push_back(mojom::PrefUpdate::New(
+ key, mojom::PrefUpdateValue::NewAtomicUpdate(value.CreateDeepCopy()),
+ 0));
observer_ptr_->OnPrefsChanged(std::move(updates));
}
void OnInitializationCompleted() {

Powered by Google App Engine
This is Rietveld 408576698