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

Unified Diff: components/dom_distiller/core/distiller_page.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/dom_distiller/core/distiller_page.cc
diff --git a/components/dom_distiller/core/distiller_page.cc b/components/dom_distiller/core/distiller_page.cc
index 8eb6585a2acfc22120ec29a55d995a128e36ed81..74e6f1c6246ef2d5144923df0cb07bc434936902 100644
--- a/components/dom_distiller/core/distiller_page.cc
+++ b/components/dom_distiller/core/distiller_page.cc
@@ -40,7 +40,7 @@ std::string GetDistillerScriptWithOptions(
scoped_ptr<base::Value> options_value(
dom_distiller::proto::json::DomDistillerOptions::WriteToValue(options));
std::string options_json;
- if (!base::JSONWriter::Write(options_value.get(), &options_json)) {
+ if (!base::JSONWriter::Write(*options_value, &options_json)) {
NOTREACHED();
}
size_t options_offset = script.find(kOptionsPlaceholder);
« no previous file with comments | « components/devtools_http_handler/devtools_http_handler.cc ('k') | components/dom_distiller/core/page_features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698