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

Unified Diff: chrome/browser/policy/configuration_policy_handler_chromeos.cc

Issue 9590002: JSONWriter cleanup: integrate pretty print into write options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict 7. Created 8 years, 9 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/policy/configuration_policy_handler_chromeos.cc
diff --git a/chrome/browser/policy/configuration_policy_handler_chromeos.cc b/chrome/browser/policy/configuration_policy_handler_chromeos.cc
index 2941ddc9900a6b7e5b34456f5bbb2db61c8383ee..ff43551ea6fd37cf4e57e1a59874aacca7c86a7f 100644
--- a/chrome/browser/policy/configuration_policy_handler_chromeos.cc
+++ b/chrome/browser/policy/configuration_policy_handler_chromeos.cc
@@ -95,8 +95,9 @@ Value* NetworkConfigurationPolicyHandler::SanitizeNetworkConfig(
}
// Convert back to a string, pretty printing the contents.
- base::JSONWriter::WriteWithOptions(config_dict, true,
- base::JSONWriter::OPTIONS_DO_NOT_ESCAPE,
+ base::JSONWriter::WriteWithOptions(config_dict,
+ base::JSONWriter::OPTIONS_DO_NOT_ESCAPE |
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
&json_string);
return Value::CreateStringValue(json_string);
}
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698