summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_accessibility_manager.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 02:11:23 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 02:11:23 +0000
commit14f986e2173cba9b850b65fb00dca74e7db3f76e (patch)
treee5efba00bc3ca2f9ffc8f354b93ebcf9d8eefc01 /chrome/browser/browser_accessibility_manager.cc
parent44e8f7c1eca7651e1162333584a66084290a71d7 (diff)
downloadchromium_src-14f986e2173cba9b850b65fb00dca74e7db3f76e.zip
chromium_src-14f986e2173cba9b850b65fb00dca74e7db3f76e.tar.gz
chromium_src-14f986e2173cba9b850b65fb00dca74e7db3f76e.tar.bz2
Revert "Use a NotificationRegistrar to listen for notifications."
This reverts commit r16709 (on pkasting's request). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility_manager.cc')
-rw-r--r--chrome/browser/browser_accessibility_manager.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/browser_accessibility_manager.cc b/chrome/browser/browser_accessibility_manager.cc
index 5190870..0930024 100644
--- a/chrome/browser/browser_accessibility_manager.cc
+++ b/chrome/browser/browser_accessibility_manager.cc
@@ -22,13 +22,17 @@ BrowserAccessibilityManager* BrowserAccessibilityManager::GetInstance() {
}
BrowserAccessibilityManager::BrowserAccessibilityManager() {
- registrar_.Add(this, NotificationType::RENDERER_PROCESS_TERMINATED,
- NotificationService::AllSources());
+ NotificationService::current()->AddObserver(this,
+ NotificationType::RENDERER_PROCESS_TERMINATED,
+ NotificationService::AllSources());
}
BrowserAccessibilityManager::~BrowserAccessibilityManager() {
// Clear hashmap.
render_process_host_map_.clear();
+
+ // We don't remove ourselves as an observer because we are a Singleton object,
+ // and NotifcationService is likely gone by this point.
}
STDMETHODIMP BrowserAccessibilityManager::CreateAccessibilityInstance(