diff options
author | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 00:03:18 +0000 |
---|---|---|
committer | klink@chromium.org <klink@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 00:03:18 +0000 |
commit | bdf647955f0bed7bd2fd3b7a9133ff46e9604687 (patch) | |
tree | 906f28e577382543a9a20fe913b5eec81af83e84 /chrome/browser/browser_accessibility_manager.cc | |
parent | 0d13416b940db94edc3d0a275f41abfe15b36a84 (diff) | |
download | chromium_src-bdf647955f0bed7bd2fd3b7a9133ff46e9604687.zip chromium_src-bdf647955f0bed7bd2fd3b7a9133ff46e9604687.tar.gz chromium_src-bdf647955f0bed7bd2fd3b7a9133ff46e9604687.tar.bz2 |
Fixes crash in BrowserAccessibilityManager destructor (see CPBrowsingContextManager for example of this type of fix).
Also fixes small style issue, to be consistent with other Singleton implementations.
Review URL: http://codereview.chromium.org/6282
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility_manager.cc')
-rw-r--r-- | chrome/browser/browser_accessibility_manager.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser_accessibility_manager.cc b/chrome/browser/browser_accessibility_manager.cc index c670cf8..f2755c0 100644 --- a/chrome/browser/browser_accessibility_manager.cc +++ b/chrome/browser/browser_accessibility_manager.cc @@ -13,7 +13,7 @@ static const int kAccessibilityMessageTimeOut = 500; // static -BrowserAccessibilityManager* BrowserAccessibilityManager::Instance() { +BrowserAccessibilityManager* BrowserAccessibilityManager::GetInstance() { return Singleton<BrowserAccessibilityManager>::get(); } @@ -28,8 +28,8 @@ BrowserAccessibilityManager::~BrowserAccessibilityManager() { instance_map_.clear(); render_process_host_map_.clear(); - NotificationService::current()->RemoveObserver(this, - NOTIFY_RENDERER_PROCESS_TERMINATED, NotificationService::AllSources()); + // 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( |