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

Unified Diff: components/history/core/browser/delete_directive_handler.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/delete_directive_handler.cc
diff --git a/components/history/core/browser/delete_directive_handler.cc b/components/history/core/browser/delete_directive_handler.cc
index 0aba13ff5a9bdbb6325acf238f6442804eb60bbd..71d7f03a60e30da322e32792ffee1238bccac997 100644
--- a/components/history/core/browser/delete_directive_handler.cc
+++ b/components/history/core/browser/delete_directive_handler.cc
@@ -32,7 +32,7 @@ std::string DeleteDirectiveToString(
scoped_ptr<base::DictionaryValue> value(
syncer::HistoryDeleteDirectiveSpecificsToValue(delete_directive));
std::string str;
- base::JSONWriter::Write(value.get(), &str);
+ base::JSONWriter::Write(*value, &str);
return str;
}

Powered by Google App Engine
This is Rietveld 408576698