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

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

Issue 2557113004: Seperate reloads when reporting previews infobar dismissal (Closed)
Patch Set: megjablon comments Created 4 years 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: chrome/browser/previews/previews_infobar_delegate.cc
diff --git a/chrome/browser/previews/previews_infobar_delegate.cc b/chrome/browser/previews/previews_infobar_delegate.cc
index 55ad0e3a4f03d5401e5097817e285a2dbaf4436c..8d24da5e37be46605c9447cb41fe4ad00dbf5109 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -103,7 +103,9 @@ int PreviewsInfoBarDelegate::GetIconId() const {
bool PreviewsInfoBarDelegate::ShouldExpire(
const NavigationDetails& details) const {
- RecordPreviewsInfoBarAction(infobar_type_, INFOBAR_DISMISSED_BY_NAVIGATION);
+ RecordPreviewsInfoBarAction(
+ infobar_type_, details.is_reload ? INFOBAR_DISMISSED_BY_RELOAD
+ : INFOBAR_DISMISSED_BY_NAVIGATION);
return InfoBarDelegate::ShouldExpire(details);
}

Powered by Google App Engine
This is Rietveld 408576698