| Index: content/browser/frame_host/render_frame_host_impl.cc
|
| diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
| index de78df1b008a679665336147ce250c5ad9bf3a98..bfcac40483e76bb3ab2742fbfcc6b3e069d56f60 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -2124,6 +2124,11 @@ void RenderFrameHostImpl::DispatchBeforeUnload(bool for_navigation) {
|
| }
|
| }
|
|
|
| +void RenderFrameHostImpl::DontWaitForBeforeUnloadAck() {
|
| + DCHECK(is_waiting_for_beforeunload_ack_);
|
| + is_waiting_for_beforeunload_ack_ = false;
|
| +}
|
| +
|
| bool RenderFrameHostImpl::ShouldDispatchBeforeUnload() {
|
| // TODO(creis): Support beforeunload on subframes.
|
| return !GetParent() && IsRenderFrameLive();
|
|
|