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

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: 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));
Finnur 2015/04/22 11:12:59 This might seem counter-intuitive, but is needed b
Maria 2015/04/22 19:26:30 I do think that this behaviour is unexpected. Ther
Finnur 2015/04/24 15:49:19 Hmm... Here's how I see it... I created this func
Finnur 2015/04/29 14:54:09 I've changed it so that the only time we use the f
return base::android::ConvertUTF8ToJavaString(env, url);
}

Powered by Google App Engine
This is Rietveld 408576698