diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 21:18:04 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 21:18:04 +0000 |
commit | b5e3bbf106f2bda83900e526d07dfa10a2164c82 (patch) | |
tree | 99d2c9ee87e04955573ed91a2b1256e489f63eb6 /chrome/browser/session_service.cc | |
parent | 2168a720764a1a223b3ebae4bdc748b83784320c (diff) | |
download | chromium_src-b5e3bbf106f2bda83900e526d07dfa10a2164c82.zip chromium_src-b5e3bbf106f2bda83900e526d07dfa10a2164c82.tar.gz chromium_src-b5e3bbf106f2bda83900e526d07dfa10a2164c82.tar.bz2 |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/session_service.cc')
-rw-r--r-- | chrome/browser/session_service.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/session_service.cc b/chrome/browser/session_service.cc index da72060..9ed3d9f 100644 --- a/chrome/browser/session_service.cc +++ b/chrome/browser/session_service.cc @@ -160,7 +160,7 @@ SessionService::~SessionService() { NotificationService::current()->RemoveObserver( this, NOTIFY_NAV_ENTRY_CHANGED, NotificationService::AllSources()); NotificationService::current()->RemoveObserver( - this, NOTIFY_NAV_ENTRY_COMMITTED, NotificationService::AllSources()); + this, NOTIFY_NAV_INDEX_CHANGED, NotificationService::AllSources()); } void SessionService::ResetFromCurrentBrowsers() { @@ -417,7 +417,7 @@ void SessionService::Init(const std::wstring& path) { NotificationService::current()->AddObserver( this, NOTIFY_NAV_ENTRY_CHANGED, NotificationService::AllSources()); NotificationService::current()->AddObserver( - this, NOTIFY_NAV_ENTRY_COMMITTED, NotificationService::AllSources()); + this, NOTIFY_NAV_INDEX_CHANGED, NotificationService::AllSources()); DCHECK(!path.empty()); commands_since_reset_ = 0; @@ -450,7 +450,7 @@ void SessionService::Observe(NotificationType type, changed->index, *changed->changed_entry); break; } - case NOTIFY_NAV_ENTRY_COMMITTED: + case NOTIFY_NAV_INDEX_CHANGED: SetSelectedNavigationIndex(controller->window_id(), controller->session_id(), controller->GetCurrentEntryIndex()); |