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

Unified Diff: chrome/browser/ui/webui/policy_ui.cc

Issue 100823007: Stop doing unnecessary UTF-8 to UTF-16 conversions in JSONWriter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 7 years 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/ui/webui/policy_ui.cc
diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc
index 17a1bf5278cd213343dbb663df6b6c1f9a49653f..0b35143e368c5a9963143eeac51545af0680864d 100644
--- a/chrome/browser/ui/webui/policy_ui.cc
+++ b/chrome/browser/ui/webui/policy_ui.cc
@@ -178,8 +178,7 @@ scoped_ptr<base::StringValue> DictionaryToJSONString(
const base::DictionaryValue* dict) {
std::string json_string;
base::JSONWriter::WriteWithOptions(dict,
- base::JSONWriter::OPTIONS_DO_NOT_ESCAPE |
- base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
&json_string);
return make_scoped_ptr(new base::StringValue(json_string));
}

Powered by Google App Engine
This is Rietveld 408576698