Index: chrome/browser/spellchecker/spelling_service_client.cc |
diff --git a/chrome/browser/spellchecker/spelling_service_client.cc b/chrome/browser/spellchecker/spelling_service_client.cc |
index dbe92a310b4a68c64e762a11b95449fffad0e023..24b39921852ff00f1fb9e7de6f927e4ca7d137c0 100644 |
--- a/chrome/browser/spellchecker/spelling_service_client.cc |
+++ b/chrome/browser/spellchecker/spelling_service_client.cc |
@@ -70,7 +70,7 @@ bool SpellingServiceClient::RequestTextCheck( |
// Format the JSON request to be sent to the Spelling service. |
std::string encoded_text; |
- base::JsonDoubleQuote(text, false, &encoded_text); |
+ base::EscapeJSONString(text, false, &encoded_text); |
Mark Mentovai
2013/12/06 15:35:12
Here.
Robert Sesek
2013/12/09 19:52:09
Done.
|
static const char kSpellingRequest[] = |
"{" |
@@ -83,7 +83,7 @@ bool SpellingServiceClient::RequestTextCheck( |
"\"key\":%s" |
"}" |
"}"; |
- std::string api_key = base::GetDoubleQuotedJson(google_apis::GetAPIKey()); |
+ std::string api_key = base::GetQuotedJSONString(google_apis::GetAPIKey()); |
std::string request = base::StringPrintf( |
kSpellingRequest, |
type, |