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

Unified Diff: components/omnibox/browser/autocomplete_input.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
Index: components/omnibox/browser/autocomplete_input.cc
diff --git a/components/omnibox/browser/autocomplete_input.cc b/components/omnibox/browser/autocomplete_input.cc
index a39d823b81e7648e00519e97eefbb15f40e46449..be9c3298856a3771a5de769ada64ccbb0072b9dd 100644
--- a/components/omnibox/browser/autocomplete_input.cc
+++ b/components/omnibox/browser/autocomplete_input.cc
@@ -80,6 +80,7 @@ AutocompleteInput::AutocompleteInput(
size_t cursor_position,
const std::string& desired_tld,
const GURL& current_url,
+ const base::string16& current_title,
metrics::OmniboxEventProto::PageClassification current_page_classification,
bool prevent_inline_autocomplete,
bool prefer_keyword,
@@ -89,6 +90,7 @@ AutocompleteInput::AutocompleteInput(
const AutocompleteSchemeClassifier& scheme_classifier)
: cursor_position_(cursor_position),
current_url_(current_url),
+ current_title_(current_title),
current_page_classification_(current_page_classification),
prevent_inline_autocomplete_(prevent_inline_autocomplete),
prefer_keyword_(prefer_keyword),
@@ -514,6 +516,7 @@ void AutocompleteInput::Clear() {
text_.clear();
cursor_position_ = base::string16::npos;
current_url_ = GURL();
+ current_title_.clear();
current_page_classification_ = metrics::OmniboxEventProto::INVALID_SPEC;
type_ = metrics::OmniboxInputType::INVALID;
parts_ = url::Parsed();
« no previous file with comments | « components/omnibox/browser/autocomplete_input.h ('k') | components/omnibox/browser/autocomplete_input_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698