| Index: content/browser/renderer_host/render_message_filter.cc
|
| diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
|
| index c949a96584f7fa56ed294cf412bb521ed0b7dd94..413c75d606845a9222fe6ecf0c93a8e65c39dc6f 100644
|
| --- a/content/browser/renderer_host/render_message_filter.cc
|
| +++ b/content/browser/renderer_host/render_message_filter.cc
|
| @@ -470,10 +470,7 @@ bool RenderMessageFilter::OffTheRecord() const {
|
|
|
| void RenderMessageFilter::OnCreateWindow(
|
| const ViewHostMsg_CreateWindow_Params& params,
|
| - int* route_id,
|
| - int* main_frame_route_id,
|
| - int* surface_id,
|
| - int64* cloned_session_storage_namespace_id) {
|
| + ViewHostMsg_CreateWindow_Reply* reply) {
|
| bool no_javascript_access;
|
|
|
| bool can_create_window =
|
| @@ -495,10 +492,11 @@ void RenderMessageFilter::OnCreateWindow(
|
| &no_javascript_access);
|
|
|
| if (!can_create_window) {
|
| - *route_id = MSG_ROUTING_NONE;
|
| - *main_frame_route_id = MSG_ROUTING_NONE;
|
| - *surface_id = 0;
|
| - *cloned_session_storage_namespace_id = 0;
|
| + reply->route_id = MSG_ROUTING_NONE;
|
| + reply->main_frame_route_id = MSG_ROUTING_NONE;
|
| + reply->main_frame_widget_route_id = MSG_ROUTING_NONE;
|
| + reply->surface_id = 0;
|
| + reply->cloned_session_storage_namespace_id = 0;
|
| return;
|
| }
|
|
|
| @@ -506,15 +504,12 @@ void RenderMessageFilter::OnCreateWindow(
|
| scoped_refptr<SessionStorageNamespaceImpl> cloned_namespace =
|
| new SessionStorageNamespaceImpl(dom_storage_context_.get(),
|
| params.session_storage_namespace_id);
|
| - *cloned_session_storage_namespace_id = cloned_namespace->id();
|
| -
|
| - render_widget_helper_->CreateNewWindow(params,
|
| - no_javascript_access,
|
| - PeerHandle(),
|
| - route_id,
|
| - main_frame_route_id,
|
| - surface_id,
|
| - cloned_namespace.get());
|
| + reply->cloned_session_storage_namespace_id = cloned_namespace->id();
|
| +
|
| + render_widget_helper_->CreateNewWindow(
|
| + params, no_javascript_access, PeerHandle(), &reply->route_id,
|
| + &reply->main_frame_route_id, &reply->main_frame_widget_route_id,
|
| + &reply->surface_id, cloned_namespace.get());
|
| }
|
|
|
| void RenderMessageFilter::OnCreateWidget(int opener_id,
|
|
|