Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index 371cf891217f87e543b765d0bb2a5fd743d8f085..fd84d52269e46fcb6c3ce231441186059c69411c 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -210,6 +210,11 @@ TabContents::TabContents(content::BrowserContext* browser_context, |
// tab contents (normally a tab from the same window). |
view_->CreateView(base_tab_contents ? |
base_tab_contents->view()->GetContainerSize() : gfx::Size()); |
+ |
+#if defined(ENABLE_JAVA_BRIDGE) |
+ java_bridge_dispatcher_host_manager_.reset( |
+ new JavaBridgeDispatcherHostManager(this)); |
+#endif |
} |
TabContents::~TabContents() { |
@@ -1471,6 +1476,7 @@ void TabContents::RenderViewGone(RenderViewHost* rvh, |
void TabContents::RenderViewDeleted(RenderViewHost* rvh) { |
render_manager_.RenderViewDeleted(rvh); |
+ FOR_EACH_OBSERVER(TabContentsObserver, observers_, RenderViewDeleted(rvh)); |
} |
void TabContents::DidNavigate(RenderViewHost* rvh, |