diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 04:50:33 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 04:50:33 +0000 |
commit | d8a899c25f9a231b834ca1153866a6cffb662ebf (patch) | |
tree | 150bbc6f1c29162ebecc56d6d5c444167ba4aad3 /chrome/browser/browser_process_impl.cc | |
parent | afddb3f46fb49bcc95112da3643a75d283b691ff (diff) | |
download | chromium_src-d8a899c25f9a231b834ca1153866a6cffb662ebf.zip chromium_src-d8a899c25f9a231b834ca1153866a6cffb662ebf.tar.gz chromium_src-d8a899c25f9a231b834ca1153866a6cffb662ebf.tar.bz2 |
Tear down the notifications UI manager before the profile goes away.
BUG=53912
TEST=close chrome with a notification open
Review URL: http://codereview.chromium.org/3481001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r-- | chrome/browser/browser_process_impl.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index 682c491..6ed0109 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -143,13 +143,14 @@ BrowserProcessImpl::~BrowserProcessImpl() { google_url_tracker_.reset(); intranet_redirect_detector_.reset(); + // Need to clear the desktop notification balloons before the io_thread_ and + // before the profiles, since if there are any still showing we will access + // those things during teardown. + notification_ui_manager_.reset(); + // 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; |