diff options
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r-- | chrome/browser/browser_process_impl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index 6ca9d41..5e160c9 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -136,6 +136,10 @@ BrowserProcessImpl::~BrowserProcessImpl() { // Need to clear profiles (download managers) before the io_thread_. profile_manager_.reset(); + // Need to clear the desktop notification balloons before the io_thread_, + // since if there are any left showing we will post tasks. + notification_ui_manager_.reset(); + // Debugger must be cleaned up before IO thread and NotificationService. debugger_wrapper_ = NULL; @@ -193,9 +197,6 @@ BrowserProcessImpl::~BrowserProcessImpl() { // former registers for notifications. tab_closeable_state_watcher_.reset(); - // Destroy NotificationUIManager before NotificationService is shut down. - notification_ui_manager_.reset(); - // Now OK to destroy NotificationService. main_notification_service_.reset(); |