Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 1f5657a8edd3fb29d58bf79f689ff067fb13a8de..921ece3ec8a7e47f39bdfae3480d418ef9b0184f 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -1422,9 +1422,7 @@ |
bool WebContentsImpl::NeedToFireBeforeUnload() { |
// TODO(creis): Should we fire even for interstitial pages? |
return WillNotifyDisconnection() && !ShowingInterstitialPage() && |
- !GetRenderViewHost()->SuddenTerminationAllowed() && |
- (GetMainFrame()->ShouldDispatchBeforeUnload() || |
- GetMainFrame()->ShouldDispatchUnload()); |
+ !GetRenderViewHost()->SuddenTerminationAllowed(); |
} |
void WebContentsImpl::DispatchBeforeUnload() { |