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

Unified Diff: chrome/browser/android/omnibox/autocomplete_controller_android.cc

Issue 2738003002: Add title to current page in zero suggest. (Closed)
Patch Set: Remove debugging info. Created 3 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autocomplete/autocomplete_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/omnibox/autocomplete_controller_android.cc
diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.cc b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
index 91949c39eed0b5c04e6617f688820e8e0b28a92b..bd626ba00bbc248205438046f6e79573dd5812ea 100644
--- a/chrome/browser/android/omnibox/autocomplete_controller_android.cc
+++ b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
@@ -98,8 +98,9 @@ ZeroSuggestPrefetcher::ZeroSuggestPrefetcher(Profile* profile)
"http://www.foobarbazblah.com"));
controller_->Start(AutocompleteInput(
fake_request_source, base::string16::npos, std::string(),
- GURL(fake_request_source), OmniboxEventProto::INVALID_SPEC, false, false,
- true, true, true, ChromeAutocompleteSchemeClassifier(profile)));
+ GURL(fake_request_source), base::string16(),
+ OmniboxEventProto::INVALID_SPEC, false, false, true, true, true,
+ ChromeAutocompleteSchemeClassifier(profile)));
// Delete ourselves after 10s. This is enough time to cache results or
// give up if the results haven't been received.
expire_timer_.Start(FROM_HERE,
@@ -154,11 +155,11 @@ void AutocompleteControllerAndroid::Start(
OmniboxEventProto::PageClassification page_classification =
OmniboxEventProto::OTHER;
size_t cursor_pos = j_cursor_pos == -1 ? base::string16::npos : j_cursor_pos;
- input_ = AutocompleteInput(text, cursor_pos, desired_tld, current_url,
- page_classification, prevent_inline_autocomplete,
- prefer_keyword, allow_exact_keyword_match,
- want_asynchronous_matches, false,
- ChromeAutocompleteSchemeClassifier(profile_));
+ input_ = AutocompleteInput(
+ text, cursor_pos, desired_tld, current_url, base::string16(),
+ page_classification, prevent_inline_autocomplete, prefer_keyword,
+ allow_exact_keyword_match, want_asynchronous_matches, false,
+ ChromeAutocompleteSchemeClassifier(profile_));
autocomplete_controller_->Start(input_);
}
@@ -191,9 +192,8 @@ void AutocompleteControllerAndroid::OnOmniboxFocused(
input_ = AutocompleteInput(
omnibox_text, base::string16::npos, std::string(), current_url,
- ClassifyPage(current_url, focused_from_fakebox),
- false, false, true, true, true,
- ChromeAutocompleteSchemeClassifier(profile_));
+ base::string16(), ClassifyPage(current_url, focused_from_fakebox), false,
+ false, true, true, true, ChromeAutocompleteSchemeClassifier(profile_));
autocomplete_controller_->Start(input_);
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/autocomplete/autocomplete_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698