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

Unified Diff: components/omnibox/search_provider.cc

Issue 1189033002: Fix AfterTyping experiment for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TBR Created 5 years, 6 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
« no previous file with comments | « components/omnibox/search_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/search_provider.cc
diff --git a/components/omnibox/search_provider.cc b/components/omnibox/search_provider.cc
index e97e7f09302160f4873e7784974334e0ab634d8f..225d7e8354815ff8c6076d6681da50b0c3cc3081 100644
--- a/components/omnibox/search_provider.cc
+++ b/components/omnibox/search_provider.cc
@@ -848,11 +848,11 @@ scoped_ptr<net::URLFetcher> SearchProvider::CreateSuggestFetcher(
return NULL;
// Send the current page URL if user setting and URL requirements are met and
// the user is in the field trial.
- if (CanSendURL(current_page_url_, suggest_url, template_url,
+ if (CanSendURL(input.current_url(), suggest_url, template_url,
input.current_page_classification(),
template_url_service_->search_terms_data(), client_.get()) &&
OmniboxFieldTrial::InZeroSuggestAfterTypingFieldTrial()) {
- search_term_args.current_page_url = current_page_url_.spec();
+ search_term_args.current_page_url = input.current_url().spec();
// Create the suggest URL again with the current page URL.
suggest_url = GURL(template_url->suggestions_url_ref().ReplaceSearchTerms(
search_term_args,
« no previous file with comments | « components/omnibox/search_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698