Index: chrome/browser/renderer_host/render_view_host.cc |
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc |
index b94d72bbee796008c43662269aaa4df0bc61afe2..49c4821246dc691161196c5a1eb4d85054a2c2ed 100644 |
--- a/chrome/browser/renderer_host/render_view_host.cc |
+++ b/chrome/browser/renderer_host/render_view_host.cc |
@@ -223,7 +223,9 @@ bool RenderViewHost::CreateRenderView() { |
// If it's enabled, tell the renderer to set up the Javascript bindings for |
// sending messages back to the browser. |
Send(new ViewMsg_AllowBindings(routing_id(), enabled_bindings_)); |
- |
+ UpdateBrowserWindowId(delegate_->GetBrowserWindowID()); |
+ Send(new ViewMsg_NotifyRenderViewType(routing_id(), |
+ delegate_->GetRenderViewType())); |
// Let our delegate know that we created a RenderView. |
delegate_->RenderViewCreated(this); |
process()->ViewCreated(); |
@@ -1641,3 +1643,7 @@ void RenderViewHost::ResetModalDialogEvent() { |
if (--modal_dialog_count_ == 0) |
modal_dialog_event_->Reset(); |
} |
+ |
+void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
+ Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
+} |