Correctly handle notification callback when shutting down

When returning false in the notification callback the ProcessSingleton
will assume current process is quitting, we should met its expectation.
This commit is contained in:
Cheng Zhao 2015-10-22 16:24:35 +08:00
parent ca876e424b
commit e14fd62f46
3 changed files with 16 additions and 6 deletions

View file

@ -130,6 +130,7 @@ class Browser : public WindowListObserver {
observers_.RemoveObserver(obs);
}
bool is_shutting_down() const { return is_shutdown_; }
bool is_quiting() const { return is_quiting_; }
bool is_ready() const { return is_ready_; }