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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.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/chromeos/policy/configuration_policy_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
index 6530914c5276ee1b744ee5e0d61eb8237f0ced97..f62b6c3a782fb6c4f23525d00327b41b3e32a431 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
@@ -298,9 +298,8 @@ base::Value* NetworkConfigurationPolicyHandler::SanitizeNetworkConfig(
*toplevel_dict,
kPlaceholder);
- base::JSONWriter::WriteWithOptions(toplevel_dict.get(),
- base::JSONWriter::OPTIONS_PRETTY_PRINT,
- &json_string);
+ base::JSONWriter::WriteWithOptions(
+ *toplevel_dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_string);
return new base::StringValue(json_string);
}

Powered by Google App Engine
This is Rietveld 408576698