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

Unified Diff: chrome/browser/local_discovery/privet_http_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: chrome/browser/local_discovery/privet_http_unittest.cc
diff --git a/chrome/browser/local_discovery/privet_http_unittest.cc b/chrome/browser/local_discovery/privet_http_unittest.cc
index f8d5dbe539b9f51fc9b38a73b8a92b89891b2b89..9fe8500dd32054cbe6fc7555858dece1c7cac01a 100644
--- a/chrome/browser/local_discovery/privet_http_unittest.cc
+++ b/chrome/browser/local_discovery/privet_http_unittest.cc
@@ -222,7 +222,7 @@ std::string NormalizeJson(const std::string& json) {
std::string result = json;
scoped_ptr<base::Value> value(base::JSONReader::Read(result));
DCHECK(value);
- base::JSONWriter::Write(value.get(), &result);
+ base::JSONWriter::Write(*value, &result);
return result;
}
« no previous file with comments | « chrome/browser/extensions/test_extension_environment.cc ('k') | chrome/browser/local_discovery/privetv3_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698