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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 8806011: Make NavigationEntry and friends use content::Referrer instead of plain URLs (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/ui/browser_navigator.h ('k') | chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index c3f91521699c2e5412adaa1255dc70f6e59fa34c..ab73fbc8e4fb14a6819897ca3b4c8456e277522e 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -249,19 +249,19 @@ void LoadURLInContents(TabContents* target_contents,
if (params->transferred_global_request_id != GlobalRequestID()) {
target_contents->controller().TransferURL(
url,
- content::Referrer(params->referrer, WebKit::WebReferrerPolicyDefault),
+ params->referrer,
params->transition, extra_headers,
params->transferred_global_request_id,
params->is_renderer_initiated);
} else if (params->is_renderer_initiated) {
target_contents->controller().LoadURLFromRenderer(
url,
- content::Referrer(params->referrer, WebKit::WebReferrerPolicyDefault),
+ params->referrer,
params->transition, extra_headers);
} else {
target_contents->controller().LoadURL(
url,
- content::Referrer(params->referrer, WebKit::WebReferrerPolicyDefault),
+ params->referrer,
params->transition, extra_headers);
}
@@ -422,7 +422,7 @@ void Navigate(NavigateParams* params) {
// A tab is being opened from a link from a different profile, we must reset
// source information that may cause state to be shared.
params->source_contents = NULL;
- params->referrer = GURL();
+ params->referrer = content::Referrer();
}
// Make sure the Browser is shown if params call for it.
« no previous file with comments | « chrome/browser/ui/browser_navigator.h ('k') | chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698