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

Unified Diff: chrome/browser/browser_accessibility_manager.cc

Issue 6282: Fixes crash in BrowserAccessibilityManager destructor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months 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
« no previous file with comments | « chrome/browser/browser_accessibility_manager.h ('k') | chrome/browser/render_widget_host_hwnd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_accessibility_manager.cc
===================================================================
--- chrome/browser/browser_accessibility_manager.cc (revision 2883)
+++ chrome/browser/browser_accessibility_manager.cc (working copy)
@@ -13,7 +13,7 @@
static const int kAccessibilityMessageTimeOut = 500;
// static
-BrowserAccessibilityManager* BrowserAccessibilityManager::Instance() {
+BrowserAccessibilityManager* BrowserAccessibilityManager::GetInstance() {
return Singleton<BrowserAccessibilityManager>::get();
}
@@ -28,8 +28,8 @@
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(
« no previous file with comments | « chrome/browser/browser_accessibility_manager.h ('k') | chrome/browser/render_widget_host_hwnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698