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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 8784006: Replace the GURL referrer field of OpenURLParams with a content::Referrer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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
« no previous file with comments | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index 818ee48f62322bde09737c15db97017cde3fc61d..0725e56b76bb98c3777ec8cf6355a8689618b425 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -1804,7 +1804,8 @@ void RenderViewContextMenu::OpenURL(
WindowOpenDisposition disposition,
content::PageTransition transition) {
TabContents* new_contents = source_tab_contents_->OpenURL(OpenURLParams(
- url, referrer, disposition, transition, false));
+ url, content::Referrer(referrer, params_.referrer_policy), disposition,
+ transition, false));
if (new_contents) {
content::RetargetingDetails details;
« no previous file with comments | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698