| 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 f7505af877b67c2644609a9ff6920d39dfba84a0..b70c0639616b962da503ddb571e5349c9c1c29d9 100644
 | 
| --- a/content/browser/web_contents/web_contents_impl.cc
 | 
| +++ b/content/browser/web_contents/web_contents_impl.cc
 | 
| @@ -54,6 +54,7 @@
 | 
|  #include "content/browser/renderer_host/render_view_host_delegate_view.h"
 | 
|  #include "content/browser/renderer_host/render_view_host_impl.h"
 | 
|  #include "content/browser/renderer_host/render_widget_host_impl.h"
 | 
| +#include "content/browser/renderer_host/render_widget_host_input_event_router.h"
 | 
|  #include "content/browser/renderer_host/render_widget_host_view_base.h"
 | 
|  #include "content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.h"
 | 
|  #include "content/browser/site_instance_impl.h"
 | 
| @@ -422,6 +423,8 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context)
 | 
|  WebContentsImpl::~WebContentsImpl() {
 | 
|    is_being_destroyed_ = true;
 | 
|  
 | 
| +  rwh_input_event_router_.reset();
 | 
| +
 | 
|    // Delete all RFH pending shutdown, which will lead the corresponding RVH to
 | 
|    // shutdown and be deleted as well.
 | 
|    frame_tree_.ForEach(
 | 
| @@ -1575,6 +1578,14 @@ bool WebContentsImpl::PreHandleGestureEvent(
 | 
|    return delegate_ && delegate_->PreHandleGestureEvent(this, event);
 | 
|  }
 | 
|  
 | 
| +RenderWidgetHostInputEventRouter* WebContentsImpl::GetInputEventRouter() {
 | 
| +  // Currently only supported in site per process mode (--site-per-process).
 | 
| +  if (!rwh_input_event_router_.get() && !is_being_destroyed_ &&
 | 
| +      SiteIsolationPolicy::AreCrossProcessFramesPossible())
 | 
| +    rwh_input_event_router_.reset(new RenderWidgetHostInputEventRouter);
 | 
| +  return rwh_input_event_router_.get();
 | 
| +}
 | 
| +
 | 
|  void WebContentsImpl::EnterFullscreenMode(const GURL& origin) {
 | 
|    // This method is being called to enter renderer-initiated fullscreen mode.
 | 
|    // Make sure any existing fullscreen widget is shut down first.
 | 
| 
 |