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

Unified Diff: chrome/browser/local_discovery/privetv3_session.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: chrome/browser/local_discovery/privetv3_session.cc
diff --git a/chrome/browser/local_discovery/privetv3_session.cc b/chrome/browser/local_discovery/privetv3_session.cc
index 85a9a428cbc8f2450e8506d2b480cc4edbf96892..b2782795baf4203e8b72c7ee1e9762222aeea932 100644
--- a/chrome/browser/local_discovery/privetv3_session.cc
+++ b/chrome/browser/local_discovery/privetv3_session.cc
@@ -410,7 +410,7 @@ void PrivetV3Session::StartPostRequest(const std::string& api,
on_post_data_.Run(input);
std::string json;
base::JSONWriter::WriteWithOptions(
- &input, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
+ input, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
PrivetURLFetcher* fetcher =
CreateFetcher(api, net::URLFetcher::RequestType::POST, callback);
fetcher->SetUploadData(cloud_print::kContentTypeJSON, json);
« no previous file with comments | « chrome/browser/local_discovery/privet_http_unittest.cc ('k') | chrome/browser/policy/test/local_policy_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698