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

Unified Diff: chrome/browser/search_engines/template_url_service_android.cc

Issue 1104473002: Make the Location is Allowed link take the Geo Header into account. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to latest Created 5 years, 8 months 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/browser/search_engines/template_url_service_android.cc
diff --git a/chrome/browser/search_engines/template_url_service_android.cc b/chrome/browser/search_engines/template_url_service_android.cc
index 7b64168fc9f6388e58c970dfd6ac0fb85efb5cb4..ec59259746309745e1505452e2196b8b54a8d36d 100644
--- a/chrome/browser/search_engines/template_url_service_android.cc
+++ b/chrome/browser/search_engines/template_url_service_android.cc
@@ -253,7 +253,7 @@ TemplateUrlServiceAndroid::GetSearchEngineUrlFromTemplateUrl(
TemplateURL* template_url = template_url_service_->GetTemplateURLs()[index];
std::string url(template_url->url_ref().ReplaceSearchTerms(
TemplateURLRef::SearchTermsArgs(
- base::string16()), SearchTermsData(), nullptr));
+ base::ASCIIToUTF16("query")), SearchTermsData(), nullptr));
newt (away) 2015/04/28 06:44:01 why/is this needed?
Finnur 2015/04/29 14:54:09 Yes, it is needed. Maria and I have been discussin
return base::android::ConvertUTF8ToJavaString(env, url);
}

Powered by Google App Engine
This is Rietveld 408576698