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

Unified Diff: chrome/browser/external_tab_container_win.cc

Issue 8785004: Change NavigationController::LoadURL to take a Referrer class instead of a GURL as 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
Index: chrome/browser/external_tab_container_win.cc
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc
index c595519878ec2ac134a12931fd9265b40c91f675..5e5d6f1ea28ae898a7966bdc28ba3195990a02ff 100644
--- a/chrome/browser/external_tab_container_win.cc
+++ b/chrome/browser/external_tab_container_win.cc
@@ -1029,9 +1029,9 @@ void ExternalTabContainer::Navigate(const GURL& url, const GURL& referrer) {
TRACE_EVENT_BEGIN_ETW("ExternalTabContainer::Navigate", 0, url.spec());
- tab_contents_->controller().LoadURL(url, referrer,
- content::PAGE_TRANSITION_START_PAGE,
- std::string());
+ tab_contents_->controller().LoadURL(
+ url, content::Referrer(referrer, WebKit::WebReferrerPolicyDefault),
+ content::PAGE_TRANSITION_START_PAGE, std::string());
}
bool ExternalTabContainer::OnGoToEntryOffset(int offset) {

Powered by Google App Engine
This is Rietveld 408576698