| 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 59791b51e94f69bfbe162b375242ea576cb65ebc..35bdeb03878bc3276e29fe619da022fd38463dfb 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -675,6 +675,10 @@ int WebContentsImpl::GetFullscreenWidgetRoutingID() const {
|
| return fullscreen_widget_routing_id_;
|
| }
|
|
|
| +void WebContentsImpl::ClosePage() {
|
| + GetRenderViewHost()->ClosePage();
|
| +}
|
| +
|
| RenderWidgetHostView* WebContentsImpl::GetRenderWidgetHostView() const {
|
| return GetRenderManager()->GetRenderWidgetHostView();
|
| }
|
| @@ -3890,6 +3894,7 @@ void WebContentsImpl::DocumentAvailableInMainFrame(
|
| FOR_EACH_OBSERVER(WebContentsObserver, observers_,
|
| DocumentAvailableInMainFrame());
|
| }
|
| +
|
| void WebContentsImpl::RouteCloseEvent(RenderViewHost* rvh) {
|
| // Tell the active RenderViewHost to run unload handlers and close, as long
|
| // as the request came from a RenderViewHost in the same BrowsingInstance.
|
| @@ -3897,7 +3902,7 @@ void WebContentsImpl::RouteCloseEvent(RenderViewHost* rvh) {
|
| // It is possible to receive it from one that has just been swapped in,
|
| // in which case we might as well deliver the message anyway.
|
| if (rvh->GetSiteInstance()->IsRelatedSiteInstance(GetSiteInstance()))
|
| - GetRenderViewHost()->ClosePage();
|
| + ClosePage();
|
| }
|
|
|
| bool WebContentsImpl::ShouldRouteMessageEvent(
|
|
|