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

Unified Diff: components/search_engines/default_search_policy_handler.cc

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad rebase Created 6 years, 5 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: components/search_engines/default_search_policy_handler.cc
diff --git a/components/search_engines/default_search_policy_handler.cc b/components/search_engines/default_search_policy_handler.cc
index 64a0ab7da7ce96953fc19037ed158a2ec48207f2..4041975aea502d50bfca61bc603800f71b8d23f3 100644
--- a/components/search_engines/default_search_policy_handler.cc
+++ b/components/search_engines/default_search_policy_handler.cc
@@ -170,8 +170,7 @@ void DefaultSearchEncodingsPolicyHandler::ApplyPolicySettings(
}
}
std::string encodings = JoinString(string_parts, ';');
- prefs->SetValue(prefs::kDefaultSearchProviderEncodings,
- base::Value::CreateStringValue(encodings));
+ prefs->SetString(prefs::kDefaultSearchProviderEncodings, encodings);
}

Powered by Google App Engine
This is Rietveld 408576698