Add a source_frame_id member to OpenURLParams for passage to WebContentsDelegate::OpenURLFromTab. This is necessary in order for the browser to open the request in the correct frame.
BUG=112289
TEST=NONE
Review URL: https://chromiumcodereview.appspot.com/9283033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120333 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 78b8024..1fc4bfa 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1994,14 +1994,14 @@
// want web sites to see a referrer of "chrome://blah" (and some
// chrome: URLs might have search terms or other stuff we don't want to
// send to the site), so we send no referrer.
- OpenURLParams params(url, content::Referrer(), disposition,
+ OpenURLParams params(url, content::Referrer(), source_frame_id, disposition,
render_manager_.web_ui()->GetLinkTransitionType(),
false /* is_renderer_initiated */);
params.transferred_global_request_id = old_request_id;
new_contents = OpenURL(params);
transition_type = render_manager_.web_ui()->GetLinkTransitionType();
} else {
- OpenURLParams params(url, referrer, disposition,
+ OpenURLParams params(url, referrer, source_frame_id, disposition,
content::PAGE_TRANSITION_LINK, true /* is_renderer_initiated */);
params.transferred_global_request_id = old_request_id;
new_contents = OpenURL(params);