| Index: chrome/browser/android/contextualsearch/contextual_search_delegate.cc
|
| diff --git a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
|
| index c4048e61a0eb6442a3c39abee759e2c4e72cce84..9386a2430909eb6153f7b1891b12c200127efd6f 100644
|
| --- a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
|
| +++ b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
|
| @@ -427,7 +427,8 @@ void ContextualSearchDelegate::DecodeSearchTermFromJsonResponse(
|
| int* mention_start,
|
| int* mention_end,
|
| std::string* lang) {
|
| - bool contains_xssi_escape = response.find(kXssiEscape) == 0;
|
| + bool contains_xssi_escape =
|
| + base::StartsWith(response, kXssiEscape, base::CompareCase::SENSITIVE);
|
| const std::string& proper_json =
|
| contains_xssi_escape ? response.substr(strlen(kXssiEscape)) : response;
|
| JSONStringValueDeserializer deserializer(proper_json);
|
|
|