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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model.cc

Issue 8956059: Rename NavigationController to NavigationControllerImpl and put it into the content namespace. Al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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: chrome/browser/ui/toolbar/toolbar_model.cc
===================================================================
--- chrome/browser/ui/toolbar/toolbar_model.cc (revision 115900)
+++ chrome/browser/ui/toolbar/toolbar_model.cc (working copy)
@@ -27,6 +27,7 @@
#include "net/base/net_util.h"
#include "ui/base/l10n/l10n_util.h"
+using content::NavigationEntry;
using content::SSLStatus;
ToolbarModel::ToolbarModel(Browser* browser)
@@ -47,7 +48,7 @@
Profile* profile =
Profile::FromBrowserContext(navigation_controller->browser_context());
languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
- content::NavigationEntry* entry = navigation_controller->GetVisibleEntry();
+ NavigationEntry* entry = navigation_controller->GetVisibleEntry();
if (!ShouldDisplayURL()) {
url = GURL();
} else if (entry) {
@@ -73,8 +74,7 @@
// of view-source:chrome://newtab, which should display its URL despite what
// chrome://newtab's WebUI says.
NavigationController* controller = GetNavigationController();
- content::NavigationEntry* entry =
- controller ? controller->GetVisibleEntry() : NULL;
+ NavigationEntry* entry = controller ? controller->GetVisibleEntry() : NULL;
if (entry) {
if (entry->IsViewSourceMode() ||
entry->GetPageType() == content::PAGE_TYPE_INTERSTITIAL) {
@@ -100,7 +100,7 @@
if (!navigation_controller) // We might not have a controller on init.
return NONE;
- content::NavigationEntry* entry = navigation_controller->GetVisibleEntry();
+ NavigationEntry* entry = navigation_controller->GetVisibleEntry();
if (!entry)
return NONE;
« no previous file with comments | « chrome/browser/ui/toolbar/back_forward_menu_model.cc ('k') | chrome/browser/ui/views/location_bar/click_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698