Pass the RenderProcessHost id on retargeting.
In cases of out-of-process iframes, RetargetingDetails doesn't currently
contain enough information to find the correct RenderFrameHost.
This CL adds the RenderProcessHost id in the RetargetingDetails struct
to allow consumers of it to correctly discover RenderFrameHost that
created the new WebContents.
BUG=649855
Review-Url: https://codereview.chromium.org/2385363002
Cr-Commit-Position: refs/heads/master@{#422621}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index a03508a..c882cafc 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2127,8 +2127,8 @@
if (delegate_) {
delegate_->WebContentsCreated(
- this, params.opener_render_frame_id, params.frame_name,
- params.target_url, new_contents);
+ this, render_process_id, params.opener_render_frame_id,
+ params.frame_name, params.target_url, new_contents);
}
if (params.opener_suppressed) {