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

Unified Diff: components/history/core/browser/web_history_service.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/history/core/browser/web_history_service.cc
diff --git a/components/history/core/browser/web_history_service.cc b/components/history/core/browser/web_history_service.cc
index 4a8b3aa7f3d5953e2709dfeffd24a2110411d891..b4047f6b4ac062d425bbaac9ed6157d68c5914bc 100644
--- a/components/history/core/browser/web_history_service.cc
+++ b/components/history/core/browser/web_history_service.cc
@@ -362,7 +362,7 @@ void WebHistoryService::ExpireHistory(
}
delete_request.Set("del", deletions.release());
std::string post_data;
- base::JSONWriter::Write(&delete_request, &post_data);
+ base::JSONWriter::Write(delete_request, &post_data);
GURL url(kHistoryDeleteHistoryUrl);
@@ -426,7 +426,7 @@ void WebHistoryService::SetAudioHistoryEnabled(
new_enabled_value);
enable_audio_history.SetString("client", "audio");
std::string post_data;
- base::JSONWriter::Write(&enable_audio_history, &post_data);
+ base::JSONWriter::Write(enable_audio_history, &post_data);
request->SetPostData(post_data);
request->Start();
« no previous file with comments | « components/history/core/browser/delete_directive_handler.cc ('k') | components/invalidation/invalidation_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698