diff options
Diffstat (limited to 'chrome/browser/chromeos/tab_closeable_state_watcher.h')
-rw-r--r-- | chrome/browser/chromeos/tab_closeable_state_watcher.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/tab_closeable_state_watcher.h b/chrome/browser/chromeos/tab_closeable_state_watcher.h index bf74077..38e8ae5 100644 --- a/chrome/browser/chromeos/tab_closeable_state_watcher.h +++ b/chrome/browser/chromeos/tab_closeable_state_watcher.h @@ -86,7 +86,7 @@ class TabCloseableStateWatcher : public ::TabCloseableStateWatcher, // Returns true if closing of |browser| is permitted. // |action_type| is the action to take regardless if browser is closeable. bool CanCloseBrowserImpl(const Browser* browser, - BrowserActionType* action_type) const; + BrowserActionType* action_type); // Data members. @@ -101,6 +101,11 @@ class TabCloseableStateWatcher : public ::TabCloseableStateWatcher, // Is in guest session? bool guest_session_; + // Set to true if we're waiting for a new browser to be created. When true we + // uncoditionally allow everything as we know a browser is in the process of + // being created. + bool waiting_for_browser_; + NotificationRegistrar notification_registrar_; // TabStripWatcher is a TabStripModelObserver that funnels all interesting |