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

Unified Diff: components/cloud_devices/common/cloud_device_description.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/cloud_devices/common/cloud_device_description.cc
diff --git a/components/cloud_devices/common/cloud_device_description.cc b/components/cloud_devices/common/cloud_device_description.cc
index d1cb5041c8db4b38ca2dd69da0ec37c2052bebcb..ba299082b39799b7b94d02d90496d79b8c53518b 100644
--- a/components/cloud_devices/common/cloud_device_description.cc
+++ b/components/cloud_devices/common/cloud_device_description.cc
@@ -47,7 +47,7 @@ bool CloudDeviceDescription::InitFromString(const std::string& json) {
std::string CloudDeviceDescription::ToString() const {
std::string json;
base::JSONWriter::WriteWithOptions(
- root_.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
+ *root_, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
return json;
}

Powered by Google App Engine
This is Rietveld 408576698