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

Unified Diff: components/cloud_devices/common/printer_description_unittest.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/printer_description_unittest.cc
diff --git a/components/cloud_devices/common/printer_description_unittest.cc b/components/cloud_devices/common/printer_description_unittest.cc
index c1fb455cd3c149ffd817e852d803e108e3147c17..5c8b182fcb6fa5938b0f85b0e719365f5935e751 100644
--- a/components/cloud_devices/common/printer_description_unittest.cc
+++ b/components/cloud_devices/common/printer_description_unittest.cc
@@ -22,7 +22,7 @@ std::string NormalizeJson(const std::string& json) {
base::ReplaceChars(result, "'", "\"", &result);
scoped_ptr<base::Value> value(base::JSONReader::Read(result));
DCHECK(value);
- base::JSONWriter::Write(value.get(), &result);
+ base::JSONWriter::Write(*value, &result);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698