Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2365)

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
+}
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698