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

Unified Diff: components/omnibox/search_suggestion_parser.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 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: components/omnibox/search_suggestion_parser.cc
diff --git a/components/omnibox/search_suggestion_parser.cc b/components/omnibox/search_suggestion_parser.cc
index 96933cf648040ae4a386908db7bdeb5a0a3e485b..26d1933ea024ade7f4bdf5169848058b5f371e44 100644
--- a/components/omnibox/search_suggestion_parser.cc
+++ b/components/omnibox/search_suggestion_parser.cc
@@ -518,7 +518,7 @@ bool SearchSuggestionParser::ParseSuggestResults(
answer->AddImageURLsTo(&results->answers_image_urls);
std::string contents;
- base::JSONWriter::Write(answer_json, &contents);
+ base::JSONWriter::Write(*answer_json, &contents);
answer_contents = base::UTF8ToUTF16(contents);
} else {
answer_type_str = base::string16();
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | components/policy/core/common/cloud/policy_header_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698