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 47245eace9816691ce6460ebb2aea829b7e751bf..fe62c168e4be6a41d9cae793903f89ac7e5494ad 100644 |
--- a/chrome/browser/previews/previews_infobar_delegate.h |
+++ b/chrome/browser/previews/previews_infobar_delegate.h |
@@ -35,6 +35,18 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate { |
INFOBAR_INDEX_BOUNDARY |
}; |
+ // Values of the UMA Previews.InfoBarTimestamp histogram. This enum must |
+ // remain synchronized with the enum of the same name in |
+ // metrics/histograms/histograms.xml. |
+ enum PreviewsInfoBarTimestamp { |
+ TIMESTAMP_SHOWN = 0, |
+ TIMESTAMP_NOT_SHOWN_PREVIEW_NOT_STALE = 1, |
+ TIMESTAMP_NOT_SHOWN_PARAMS_NOT_AVAILABLE = 2, |
+ TIMESTAMP_NOT_SHOWN_STALENESS_NEGATIVE = 3, |
+ TIMESTAMP_NOT_SHOWN_STALENESS_GREATER_THAN_MAX = 4, |
+ TIMESTAMP_INDEX_BOUNDARY |
+ }; |
+ |
~PreviewsInfoBarDelegate() override; |
// Creates a preview infobar and corresponding delegate and adds the infobar |