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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 2666193002: Switch RenderViewContextMenu to use RequestOpenURL (Closed)
Patch Set: Address Charlie's comments Created 3 years, 10 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: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 2a87f4aad7b6e1413be1774ab6a574e013e39eaa..4d00393905e63d500f8690c1583ca28470dfa0de 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -797,6 +797,9 @@ void NavigatorImpl::RequestOpenURL(
// RequestOpenURL and go through RequestTransferURL instead.
params.source_site_instance = current_site_instance;
+ params.source_render_frame_id = render_frame_host->GetRoutingID();
+ params.source_render_process_id = render_frame_host->GetProcess()->GetID();
+
if (render_frame_host->web_ui()) {
// Note that we hide the referrer for Web UI pages. We don't really want
// web sites to see a referrer of "chrome://blah" (and some chrome: URLs
@@ -813,7 +816,7 @@ void NavigatorImpl::RequestOpenURL(
&params.referrer);
if (delegate_)
- delegate_->RequestOpenURL(render_frame_host, params);
+ delegate_->OpenURL(params);
}
void NavigatorImpl::RequestTransferURL(

Powered by Google App Engine
This is Rietveld 408576698