| Index: content/browser/tab_contents/tab_contents.cc
|
| diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
|
| index b9fba7064782c46f9bdb745ab755ec6455d2fc4f..23abcceda8b2e30ebb7c8b0e363b069487b32e86 100644
|
| --- a/content/browser/tab_contents/tab_contents.cc
|
| +++ b/content/browser/tab_contents/tab_contents.cc
|
| @@ -573,8 +573,10 @@ TabContents* TabContents::OpenURL(const GURL& url,
|
| const GURL& referrer,
|
| WindowOpenDisposition disposition,
|
| content::PageTransition transition) {
|
| - return OpenURL(OpenURLParams(url, referrer, disposition, transition,
|
| - false));
|
| + // For specifying a referrer, use the version of OpenURL taking OpenURLParams.
|
| + DCHECK(referrer.is_empty());
|
| + return OpenURL(OpenURLParams(url, content::Referrer(), disposition,
|
| + transition, false));
|
| }
|
|
|
| TabContents* TabContents::OpenURL(const OpenURLParams& params) {
|
| @@ -1745,7 +1747,7 @@ void TabContents::DocumentOnLoadCompletedInMainFrame(
|
| }
|
|
|
| void TabContents::RequestOpenURL(const GURL& url,
|
| - const GURL& referrer,
|
| + const content::Referrer& referrer,
|
| WindowOpenDisposition disposition,
|
| int64 source_frame_id) {
|
| TabContents* new_contents = NULL;
|
|
|