Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 956f8fd2e302447573f8a37698cb1376cb4d1830..0d9a57655116b441cc055a595374fc7041c89b37 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -3050,7 +3050,7 @@ int Browser::GetDragActions() const { |
} |
TabContentsWrapper* Browser::CreateTabContentsForURL( |
- const GURL& url, const GURL& referrer, Profile* profile, |
+ const GURL& url, const content::Referrer& referrer, Profile* profile, |
content::PageTransition transition, bool defer_load, |
SiteInstance* instance) const { |
TabContentsWrapper* contents = TabContentsFactory(profile, instance, |
@@ -3059,11 +3059,7 @@ TabContentsWrapper* Browser::CreateTabContentsForURL( |
if (!defer_load) { |
// Load the initial URL before adding the new tab contents to the tab strip |
// so that the tab contents has navigation state. |
- contents->controller().LoadURL( |
- url, |
- content::Referrer(referrer, WebKit::WebReferrerPolicyDefault), |
- transition, |
- std::string()); |
+ contents->controller().LoadURL(url, referrer, transition, std::string()); |
} |
return contents; |