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

Unified Diff: components/omnibox/browser/clipboard_url_provider.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: components/omnibox/browser/clipboard_url_provider.cc
diff --git a/components/omnibox/browser/clipboard_url_provider.cc b/components/omnibox/browser/clipboard_url_provider.cc
index 27babb71d130dcf80aef7b851c515011c36b5d78..1391bdcc57456fc723c7abc13e22e6f9835ef277 100644
--- a/components/omnibox/browser/clipboard_url_provider.cc
+++ b/components/omnibox/browser/clipboard_url_provider.cc
@@ -47,8 +47,9 @@ void ClipboardURLProvider::Start(const AutocompleteInput& input,
// If the omnibox is not empty, add a default match.
// This match will be opened when the user presses "Enter".
if (!input.text().empty()) {
- AutocompleteMatch verbatim_match = VerbatimMatchForURL(
- client_, input, input.current_url(), history_url_provider_, -1);
+ AutocompleteMatch verbatim_match =
+ VerbatimMatchForURL(client_, input, input.current_url(),
Mark P 2017/04/13 21:12:28 Ditto comment about using the real title (again un
gcomanici 2017/04/18 18:52:52 Done.
+ base::string16(), history_url_provider_, -1);
matches_.push_back(verbatim_match);
}
UMA_HISTOGRAM_BOOLEAN("Omnibox.ClipboardSuggestionShownWithCurrentURL",

Powered by Google App Engine
This is Rietveld 408576698