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

Unified Diff: chrome/browser/ui/webui/local_state/local_state_ui_unittest.cc

Issue 2888073002: Remove raw DictionaryValue::Set in //chrome (Closed)
Patch Set: Fix Tests Created 3 years, 7 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: chrome/browser/ui/webui/local_state/local_state_ui_unittest.cc
diff --git a/chrome/browser/ui/webui/local_state/local_state_ui_unittest.cc b/chrome/browser/ui/webui/local_state/local_state_ui_unittest.cc
index 4d1793407c5173e9ef2cc3fe54078a70cedeb573..0715a734ad221270010c4b6e8d12981531f5133e 100644
--- a/chrome/browser/ui/webui/local_state/local_state_ui_unittest.cc
+++ b/chrome/browser/ui/webui/local_state/local_state_ui_unittest.cc
@@ -19,7 +19,7 @@ TEST(LocalStateUiTest, FilterPrefs) {
base::DictionaryValue prefs;
for (const std::string& key : all_pref_keys) {
- prefs.Set(key, new base::Value(key + "_value"));
+ prefs.SetString(key, key + "_value");
}
internal::FilterPrefs(prefixes, &prefs);

Powered by Google App Engine
This is Rietveld 408576698