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

Unified Diff: chrome/renderer/searchbox/searchbox_extension.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: '' 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/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index f34b1024b3e8fccbfdda43207a447343aad41ee8..b1d264f2b0a50779e871a965b5bacac7fdbf96d6 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -461,7 +461,7 @@ void SearchBoxExtension::DispatchChromeIdentityCheckResult(
const base::string16& identity,
bool identity_match) {
std::string escaped_identity;
- base::JsonDoubleQuote(identity, true, &escaped_identity);
+ base::EscapeJSONString(identity, true, &escaped_identity);
Mark Mentovai 2013/12/06 15:35:12 Here. In fact, this time, it wanted the quotes to
Robert Sesek 2013/12/09 19:52:09 Done.
blink::WebString script(UTF8ToUTF16(base::StringPrintf(
kDispatchChromeIdentityCheckResult,
escaped_identity.c_str(),

Powered by Google App Engine
This is Rietveld 408576698