| 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 72d53245905548c7587908e18958539a1e3f6875..13bb3160d551efa1c33bffcfa522c75108cc4ada 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -303,6 +303,7 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| OnDidFailLoadWithError)
|
| IPC_MESSAGE_HANDLER_GENERIC(FrameHostMsg_DidCommitProvisionalLoad,
|
| OnDidCommitProvisionalLoad(msg))
|
| + IPC_MESSAGE_HANDLER(FrameHostMsg_DidDropNavigation, OnDidDropNavigation)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_OpenURL, OnOpenURL)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_DocumentOnLoadCompleted,
|
| OnDocumentOnLoadCompleted)
|
| @@ -703,6 +704,14 @@ void RenderFrameHostImpl::OnDidCommitProvisionalLoad(const IPC::Message& msg) {
|
| frame_tree_node()->navigator()->DidNavigate(this, validated_params);
|
| }
|
|
|
| +void RenderFrameHostImpl::OnDidDropNavigation() {
|
| + // At the end of Navigate(), the delegate's DidStartLoading is called to force
|
| + // the spinner to start, even if the renderer didn't yet begin the load. If it
|
| + // turns out that the renderer dropped the navigation, we need to turn off the
|
| + // spinner.
|
| + delegate_->DidStopLoading(this);
|
| +}
|
| +
|
| RenderWidgetHostImpl* RenderFrameHostImpl::GetRenderWidgetHost() {
|
| return static_cast<RenderWidgetHostImpl*>(render_view_host_);
|
| }
|
|
|