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

Unified Diff: chrome/browser/android/vr_shell/vr_omnibox.cc

Issue 2738003002: Add title to current page in zero suggest. (Closed)
Patch Set: Added description as a param to VerbatimMatchForURL 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
Index: chrome/browser/android/vr_shell/vr_omnibox.cc
diff --git a/chrome/browser/android/vr_shell/vr_omnibox.cc b/chrome/browser/android/vr_shell/vr_omnibox.cc
index a76509d753e7811b5c207480a251159527560c33..591439e87ccbcf13415422bfe33bbf44c16a203e 100644
--- a/chrome/browser/android/vr_shell/vr_omnibox.cc
+++ b/chrome/browser/android/vr_shell/vr_omnibox.cc
@@ -33,6 +33,7 @@ void VrOmnibox::HandleInput(const base::DictionaryValue& dict) {
// TODO(crbug.com/683344): Scrub and appropriately tune these parameters.
GURL current_url;
+ base::string16 current_title;
size_t cursor_pos = base::string16::npos;
std::string desired_tld;
metrics::OmniboxEventProto::PageClassification page_classification =
@@ -44,9 +45,9 @@ void VrOmnibox::HandleInput(const base::DictionaryValue& dict) {
bool from_omnibox_focus = false;
autocomplete_controller_->Start(AutocompleteInput(
- text, cursor_pos, desired_tld, current_url, page_classification,
- prevent_inline_autocomplete, prefer_keyword, allow_exact_keyword_match,
- want_asynchronous_matches, from_omnibox_focus,
+ text, cursor_pos, desired_tld, current_url, current_title,
+ page_classification, prevent_inline_autocomplete, prefer_keyword,
+ allow_exact_keyword_match, want_asynchronous_matches, from_omnibox_focus,
ChromeAutocompleteSchemeClassifier(profile_)));
}

Powered by Google App Engine
This is Rietveld 408576698