Index: chrome/browser/translate/translate_infobar_delegate.cc |
=================================================================== |
--- chrome/browser/translate/translate_infobar_delegate.cc (revision 91739) |
+++ chrome/browser/translate/translate_infobar_delegate.cc (working copy) |
@@ -358,7 +358,7 @@ |
const content::LoadCommittedDetails& details) const { |
// Note: we allow closing this infobar even if the main frame navigation |
// was programmatic and not initiated by the user - crbug.com/70261 . |
- if (!details.is_navigation_to_different_page() && !details.is_main_frame) |
+ if (!details.is_user_initiated_main_frame_load() && !details.is_main_frame) |
return false; |
return InfoBarDelegate::ShouldExpireInternal(details); |