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

Unified Diff: components/omnibox/browser/clipboard_url_provider.h

Issue 2904293002: Omnibox - Clipboard Provider - Record Number of Times Suggestion Offered (Closed)
Patch Set: isherman's comments Created 3 years, 7 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 | « no previous file | components/omnibox/browser/clipboard_url_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/clipboard_url_provider.h
diff --git a/components/omnibox/browser/clipboard_url_provider.h b/components/omnibox/browser/clipboard_url_provider.h
index ac2762ac52ba1b75d036f3243ea42c475b7cf013..0b54d3e4aebc76820f1def4072ed8305d7c8d1d9 100644
--- a/components/omnibox/browser/clipboard_url_provider.h
+++ b/components/omnibox/browser/clipboard_url_provider.h
@@ -22,6 +22,7 @@ class ClipboardURLProvider : public AutocompleteProvider {
// AutocompleteProvider implementation.
void Start(const AutocompleteInput& input, bool minimal_changes) override;
+ void AddProviderInfo(ProvidersInfo* provider_info) const override;
private:
~ClipboardURLProvider() override;
@@ -32,6 +33,11 @@ class ClipboardURLProvider : public AutocompleteProvider {
// Used for efficiency when creating the verbatim match. Can be NULL.
HistoryURLProvider* history_url_provider_;
+ // The current URL suggested and the number of times it has been offered.
+ // Used for recording metrics.
+ GURL current_url_suggested_;
+ size_t current_url_suggested_times_;
+
DISALLOW_COPY_AND_ASSIGN(ClipboardURLProvider);
};
« no previous file with comments | « no previous file | components/omnibox/browser/clipboard_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698