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

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

Issue 106793004: Revert of Stop doing unnecessary UTF-8 to UTF-16 conversions in JSONWriter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0b35143e368c5a9963143eeac51545af0680864d..17a1bf5278cd213343dbb663df6b6c1f9a49653f 100644
--- a/chrome/browser/ui/webui/policy_ui.cc
+++ b/chrome/browser/ui/webui/policy_ui.cc
@@ -178,7 +178,8 @@
const base::DictionaryValue* dict) {
std::string json_string;
base::JSONWriter::WriteWithOptions(dict,
- base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ base::JSONWriter::OPTIONS_DO_NOT_ESCAPE |
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
&json_string);
return make_scoped_ptr(new base::StringValue(json_string));
}
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698