From c058805b99cce98cbc352c499f3e69fd355a84c2 Mon Sep 17 00:00:00 2001
From: "ericroman@google.com"
 <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Mon, 27 Oct 2008 23:01:50 +0000
Subject: Plumb the referrer throughout the OpenURL APIs.

http://code.google.com/p/chromium/issues/detail?id=3224

Caveats:
* Did not update TabNavigation yet. Hence session restore will continue to load the tabs with empty referrer.
* Did not plumb referrer into incognito url open. (Not sure what the right thing to do is here with respect to privacy vs compatibility.)
* Did not plumb referrer throughout the automation controller. No functional impact here, but it makes the code inconsistent with the non-automation version.

Review URL: http://codereview.chromium.org/8186

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4036 0039d316-1c4b-4281-b951-d872f2087c98
---
 chrome/browser/page_navigator.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'chrome/browser/page_navigator.h')

diff --git a/chrome/browser/page_navigator.h b/chrome/browser/page_navigator.h
index 2e795fa..0152d39 100644
--- a/chrome/browser/page_navigator.h
+++ b/chrome/browser/page_navigator.h
@@ -18,7 +18,7 @@ class PageNavigator {
  public:
   // Opens a URL with the given disposition.  The transition specifies how this
   // navigation should be recorded in the history system (for example, typed).
-  virtual void OpenURL(const GURL& url,
+  virtual void OpenURL(const GURL& url, const GURL& referrer,
                        WindowOpenDisposition disposition,
                        PageTransition::Type transition) = 0;
 };
-- 
cgit v1.1