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

Unified Diff: chrome/browser/previews/previews_infobar_delegate.h

Issue 2266653002: Previews infobar tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newLoFiInfoBarAddUMA
Patch Set: bengr comments Created 4 years, 3 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 | chrome/browser/previews/previews_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/previews/previews_infobar_delegate.h
diff --git a/chrome/browser/previews/previews_infobar_delegate.h b/chrome/browser/previews/previews_infobar_delegate.h
index 8e919d535cb32eee297abf562383d70a8700a2cc..1b133ef44a5cfa9851d8faddb6dc88ee2e30f5c0 100644
--- a/chrome/browser/previews/previews_infobar_delegate.h
+++ b/chrome/browser/previews/previews_infobar_delegate.h
@@ -25,6 +25,16 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate {
OFFLINE, // Offline copy of the page.
};
+ // Actions on the previews infobar. This enum must remain synchronized with
+ // the enum of the same name in metrics/histograms/histograms.xml.
+ enum PreviewsInfoBarAction {
+ INFOBAR_SHOWN = 0,
+ INFOBAR_LOAD_ORIGINAL_CLICKED = 1,
+ INFOBAR_DISMISSED_BY_USER = 2,
+ INFOBAR_DISMISSED_BY_NAVIGATION = 3,
+ INFOBAR_INDEX_BOUNDARY
+ };
+
~PreviewsInfoBarDelegate() override;
// Creates a preview infobar and corresponding delegate and adds the infobar
« no previous file with comments | « no previous file | chrome/browser/previews/previews_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698