Chromium Code Reviews| Index: chrome/browser/status_icons/desktop_notification_balloon.cc |
| diff --git a/chrome/browser/status_icons/desktop_notification_balloon.cc b/chrome/browser/status_icons/desktop_notification_balloon.cc |
| index a0361d4eb66cfd1fd40cb314fa0ce07a41fccf2f..fe0c4787b97a05c5182768a90a7056a02a00d4a1 100644 |
| --- a/chrome/browser/status_icons/desktop_notification_balloon.cc |
| +++ b/chrome/browser/status_icons/desktop_notification_balloon.cc |
| @@ -19,6 +19,11 @@ |
| namespace { |
| void CloseBalloon(const std::string& id) { |
| + // The browser process may have gone away during shutting down, in this case |
|
Nico
2012/04/25 15:52:51
nit: "during shutdown"
no longer working on chromium
2012/04/30 09:59:38
Done.
|
| + // notification_ui_manager() will close the balloon in its destructor. |
| + if (!g_browser_process) |
| + return; |
| + |
| g_browser_process->notification_ui_manager()->CancelById(id); |
| } |