summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_controller.cc
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 00:37:37 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 00:37:37 +0000
commit0ae7d14ea97bdb4170948521144de57059eb4eeb (patch)
treebe76ed4549502f6ac6c4761a4e6e0420649fa94b /chrome/browser/navigation_controller.cc
parenta6e14c9c3c2af6b0a541c9399a984bdf1c4398ad (diff)
downloadchromium_src-0ae7d14ea97bdb4170948521144de57059eb4eeb.zip
chromium_src-0ae7d14ea97bdb4170948521144de57059eb4eeb.tar.gz
chromium_src-0ae7d14ea97bdb4170948521144de57059eb4eeb.tar.bz2
Remove registration step between NavigationController > Profile.
No code path requires NavigationControllers to register themselves with a profile. We won't need this moving forward, either. Review URL: http://codereview.chromium.org/2869 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller.cc')
-rw-r--r--chrome/browser/navigation_controller.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/navigation_controller.cc b/chrome/browser/navigation_controller.cc
index d294ace..6f723b4 100644
--- a/chrome/browser/navigation_controller.cc
+++ b/chrome/browser/navigation_controller.cc
@@ -174,7 +174,6 @@ NavigationController::NavigationController(TabContents* contents,
if (contents)
RegisterTabContents(contents);
DCHECK(profile_);
- profile_->RegisterNavigationController(this);
}
NavigationController::NavigationController(
@@ -197,8 +196,6 @@ NavigationController::NavigationController(
DCHECK(selected_navigation >= 0 &&
selected_navigation < static_cast<int>(navigations.size()));
- profile_->RegisterNavigationController(this);
-
// Populate entries_ from the supplied TabNavigations.
CreateNavigationEntriesFromTabNavigations(navigations, &entries_);
@@ -212,7 +209,6 @@ NavigationController::~NavigationController() {
DiscardPendingEntryInternal();
- profile_->UnregisterNavigationController(this);
NotificationService::current()->Notify(NOTIFY_TAB_CLOSED,
Source<NavigationController>(this),
NotificationService::NoDetails());