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

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

Issue 8772041: Remove deprecated TabContentsDelegate::OpenURLFromTab variant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
Index: content/browser/tab_contents/navigation_controller.cc
diff --git a/content/browser/tab_contents/navigation_controller.cc b/content/browser/tab_contents/navigation_controller.cc
index 383a1ecd9e406955e683089f14f848f6de7b88e5..66dacc67c21617018997b419bc7e834b48affe4f 100644
--- a/content/browser/tab_contents/navigation_controller.cc
+++ b/content/browser/tab_contents/navigation_controller.cc
@@ -223,7 +223,8 @@ bool NavigationController::IsInitialNavigation() {
// static
NavigationEntry* NavigationController::CreateNavigationEntry(
- const GURL& url, const GURL& referrer, content::PageTransition transition,
+ const GURL& url, const content::Referrer& referrer,
+ content::PageTransition transition,
bool is_renderer_initiated, const std::string& extra_headers,
content::BrowserContext* browser_context) {
// Allow the browser URL handler to rewrite the URL. This will, for example,
@@ -472,7 +473,8 @@ void NavigationController::RemoveEntryAtIndex(int index,
} else {
// If there is nothing to show, show a default page.
LoadURL(default_url.is_empty() ? GURL("about:blank") : default_url,
- GURL(), content::PAGE_TRANSITION_START_PAGE, std::string());
+ content::Referrer(), content::PAGE_TRANSITION_START_PAGE,
+ std::string());
}
}
}
@@ -499,7 +501,7 @@ void NavigationController::AddTransientEntry(NavigationEntry* entry) {
void NavigationController::LoadURL(
const GURL& url,
- const GURL& referrer,
+ const content::Referrer& referrer,
content::PageTransition transition,
const std::string& extra_headers) {
// The user initiated a load, we don't need to reload anymore.
@@ -515,7 +517,7 @@ void NavigationController::LoadURL(
void NavigationController::LoadURLFromRenderer(
const GURL& url,
- const GURL& referrer,
+ const content::Referrer& referrer,
content::PageTransition transition,
const std::string& extra_headers) {
// The user initiated a load, we don't need to reload anymore.
« no previous file with comments | « content/browser/tab_contents/navigation_controller.h ('k') | content/browser/tab_contents/navigation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698