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

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

Issue 2557113004: Seperate reloads when reporting previews infobar dismissal (Closed)
Patch Set: rebase fix 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 80f8eabaf0ff57e62d0ff5ec173ba80efb5abcdc..3a34ccddb693d3f087eb995260c839f582692a79 100644
--- a/chrome/browser/previews/previews_infobar_delegate.cc
+++ b/chrome/browser/previews/previews_infobar_delegate.cc
@@ -109,7 +109,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);
}
« no previous file with comments | « chrome/browser/previews/previews_infobar_delegate.h ('k') | chrome/browser/previews/previews_infobar_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698