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

Unified Diff: net/log/trace_net_log_observer.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
« no previous file with comments | « net/log/test_net_log_entry.cc ('k') | net/log/write_to_file_net_log_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/trace_net_log_observer.cc
diff --git a/net/log/trace_net_log_observer.cc b/net/log/trace_net_log_observer.cc
index 2ce8bc07ff2ea3acab57de93e4b2ca0095c9058e..4978e64c79e32ac7adb39bd736eebfa6d7cb137f 100644
--- a/net/log/trace_net_log_observer.cc
+++ b/net/log/trace_net_log_observer.cc
@@ -32,7 +32,7 @@ class TracedValue : public base::trace_event::ConvertableToTraceFormat {
void AppendAsTraceFormat(std::string* out) const override {
if (value_) {
std::string tmp;
- base::JSONWriter::Write(value_.get(), &tmp);
+ base::JSONWriter::Write(*value_, &tmp);
*out += tmp;
} else {
*out += "\"\"";
« no previous file with comments | « net/log/test_net_log_entry.cc ('k') | net/log/write_to_file_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698