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

Unified Diff: chrome/browser/debugger/debugger_view.cc

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months 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 | « chrome/browser/debugger/debugger_view.h ('k') | chrome/browser/dom_ui/new_tab_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_view.cc
===================================================================
--- chrome/browser/debugger/debugger_view.cc (revision 3991)
+++ chrome/browser/debugger/debugger_view.cc (working copy)
@@ -101,7 +101,8 @@
web_contents_->render_view_host()->AllowDOMUIBindings();
GURL contents("chrome-resource://debugger/");
- web_contents_->controller()->LoadURL(contents, PageTransition::START_PAGE);
+ web_contents_->controller()->LoadURL(contents, GURL(),
+ PageTransition::START_PAGE);
}
void DebuggerView::OnShow() {
@@ -123,9 +124,11 @@
void DebuggerView::OpenURLFromTab(TabContents* source,
const GURL& url,
+ const GURL& referrer,
WindowOpenDisposition disposition,
PageTransition::Type transition) {
- BrowserList::GetLastActive()->OpenURL(url, disposition, transition);
+ BrowserList::GetLastActive()->OpenURL(url, referrer, disposition,
+ transition);
}
void DebuggerView::ExecuteJavascript(const std::string& js) {
« no previous file with comments | « chrome/browser/debugger/debugger_view.h ('k') | chrome/browser/dom_ui/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698