Chromium Code Reviews| Index: content/browser/renderer_host/render_view_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
| index 7ea514c0a281fdf6927159852ad4a320605b2578..de587377a694970c555cd2e21fed6e38a7d8d560 100644 |
| --- a/content/browser/renderer_host/render_view_host_impl.cc |
| +++ b/content/browser/renderer_host/render_view_host_impl.cc |
| @@ -140,7 +140,6 @@ RenderViewHostImpl::RenderViewHostImpl(SiteInstance* instance, |
| instance_(static_cast<SiteInstanceImpl*>(instance)), |
| waiting_for_drag_context_response_(false), |
| enabled_bindings_(0), |
| - guest_(false), |
| pending_request_id_(-1), |
| navigations_suspended_(false), |
| suspended_nav_message_(NULL), |
| @@ -205,7 +204,8 @@ content::SiteInstance* RenderViewHostImpl::GetSiteInstance() const { |
| bool RenderViewHostImpl::CreateRenderView(const string16& frame_name, |
| int opener_route_id, |
| - int32 max_page_id) { |
| + int32 max_page_id, |
| + int embedder_process_id) { |
| DCHECK(!IsRenderViewLive()) << "Creating view twice"; |
| // The process may (if we're sharing a process with another host that already |
| @@ -254,7 +254,11 @@ bool RenderViewHostImpl::CreateRenderView(const string16& frame_name, |
| WebKit::WebScreenInfoFactory::screenInfo( |
| gfx::NativeViewFromId(GetNativeViewId())); |
| #endif |
| - params.guest = guest_; |
| + |
| + if (embedder_process_id != -1) |
| + params.embedder_channel_name = |
| + StringPrintf("%d.r%d", GetProcess()->GetID(), embedder_process_id); |
|
jam
2012/05/15 00:05:06
someone from the security team should take a look
jschuh
2012/05/15 00:43:35
Thanks John. It should probably be changed to some
Fady Samuel
2012/05/15 02:09:15
Hi Justin,
I don't quite understand the purpose o
jschuh
2012/05/15 15:49:44
The client gets a channel ID including the nonce v
|
| + |
| params.accessibility_mode = |
| BrowserAccessibilityState::GetInstance()->IsAccessibleBrowser() ? |
| AccessibilityModeComplete : |