Chromium Code Reviews| 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( |
|
RyanSturm
2016/12/09 17:04:42
Add unit test coverage.
RyanSturm
2016/12/17 00:21:54
Done.
|
| + infobar_type_, details.is_reload ? INFOBAR_DISMISSED_BY_RELOAD |
| + : INFOBAR_DISMISSED_BY_NAVIGATION); |
| return InfoBarDelegate::ShouldExpire(details); |
| } |