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 cf3ec7219b0dcd06f6097d436c1162ab67d5c426..00dbd79446bf013abaa1b5ea9071d2f1f4b8587b 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -73,6 +73,7 @@ |
#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/renderer_host/text_input_manager.h" |
+#include "content/browser/resource_coordinator_web_contents_observer.h" |
#include "content/browser/screen_orientation/screen_orientation_provider.h" |
#include "content/browser/site_instance_impl.h" |
#include "content/browser/web_contents/web_contents_view_child_frame.h" |
@@ -485,6 +486,8 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context) |
BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), |
base::Bind(&WebContentsImpl::GetNativeView, base::Unretained(this)))); |
host_zoom_map_observer_.reset(new HostZoomMapObserver(this)); |
+ // TODO(oysteine): Only do this for top-level tab WebContents. |
+ ResourceCoordinatorWebContentsObserver::CreateForWebContents(this); |
} |
WebContentsImpl::~WebContentsImpl() { |