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..19bc48bacdd7634675a74773dde33922f9c53275 100644 |
--- a/chrome/renderer/searchbox/searchbox_extension.cc |
+++ b/chrome/renderer/searchbox/searchbox_extension.cc |
@@ -460,8 +460,7 @@ void SearchBoxExtension::DispatchChromeIdentityCheckResult( |
blink::WebFrame* frame, |
const base::string16& identity, |
bool identity_match) { |
- std::string escaped_identity; |
- base::JsonDoubleQuote(identity, true, &escaped_identity); |
+ std::string escaped_identity = base::GetQuotedJSONString(identity); |
blink::WebString script(UTF8ToUTF16(base::StringPrintf( |
kDispatchChromeIdentityCheckResult, |
escaped_identity.c_str(), |