summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_view_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host.cc')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index b94d72b..49c4821 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));
+}