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

Unified Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 8784006: Replace the GURL referrer field of OpenURLParams with a content::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
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents_delegate.cc
diff --git a/content/browser/tab_contents/tab_contents_delegate.cc b/content/browser/tab_contents/tab_contents_delegate.cc
index 43d331b75d951c405bc75aa2f3ddcaaedcf40867..e8ca205142606447d91cc9391e5eb4a0baf634d9 100644
--- a/content/browser/tab_contents/tab_contents_delegate.cc
+++ b/content/browser/tab_contents/tab_contents_delegate.cc
@@ -149,8 +149,9 @@ void TabContentsDelegate::ViewSourceForTab(TabContents* source,
// it with proper implementation.
GURL url = GURL(chrome::kViewSourceScheme + std::string(":") +
page_url.spec());
- OpenURLFromTab(source, OpenURLParams(
- url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false));
+ OpenURLFromTab(source, OpenURLParams(url, content::Referrer(),
+ NEW_FOREGROUND_TAB,
+ content::PAGE_TRANSITION_LINK, false));
}
void TabContentsDelegate::ViewSourceForFrame(TabContents* source,
@@ -159,8 +160,9 @@ void TabContentsDelegate::ViewSourceForFrame(TabContents* source,
// Same as ViewSourceForTab, but for given subframe.
GURL url = GURL(chrome::kViewSourceScheme + std::string(":") +
frame_url.spec());
- OpenURLFromTab(source, OpenURLParams(
- url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false));
+ OpenURLFromTab(source, OpenURLParams(url, content::Referrer(),
+ NEW_FOREGROUND_TAB,
+ content::PAGE_TRANSITION_LINK, false));
}
bool TabContentsDelegate::PreHandleKeyboardEvent(
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698