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

Unified Diff: components/omnibox/browser/verbatim_match.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 | « components/omnibox/browser/verbatim_match.h ('k') | components/omnibox/browser/zero_suggest_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/verbatim_match.cc
diff --git a/components/omnibox/browser/verbatim_match.cc b/components/omnibox/browser/verbatim_match.cc
index 381ba3d2ffa7b7bdbdee3e63dfc3a7fb3d1aa149..76b2ff39194c5122b177d45535b2011411d47742 100644
--- a/components/omnibox/browser/verbatim_match.cc
+++ b/components/omnibox/browser/verbatim_match.cc
@@ -15,6 +15,7 @@ AutocompleteMatch VerbatimMatchForURL(
AutocompleteProviderClient* client,
const AutocompleteInput& input,
const GURL& destination_url,
+ const base::string16& destination_description,
HistoryURLProvider* history_url_provider,
int verbatim_relevance) {
DCHECK(!input.text().empty());
@@ -29,6 +30,10 @@ AutocompleteMatch VerbatimMatchForURL(
input,
destination_url,
!AutocompleteInput::HasHTTPScheme(input.text()));
+ match.description = destination_description;
+ AutocompleteMatch::ClassifyLocationInString(
+ base::string16::npos, 0, match.description.length(),
+ ACMatchClassification::NONE, &match.description_class);
} else {
client->Classify(input.text(), false, true,
input.current_page_classification(), &match, nullptr);
« no previous file with comments | « components/omnibox/browser/verbatim_match.h ('k') | components/omnibox/browser/zero_suggest_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698