diff options
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index d58a21e..a66cb8f 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -98,6 +98,10 @@ class TaskManager { // Close the task manager. void Close(); + // Do the cleanup that can't be done during singleton destruction by + // AtExitManager. Does nothing if the TaskManager hasn't been initialized. + static void EnsureShutdown(); + // Returns true if the current selection includes the browser process. bool BrowserProcessIsSelected(); @@ -133,6 +137,9 @@ class TaskManager { // Returns the singleton instance (and initializes it if necessary). static TaskManager* GetInstance(); + // Flag set to true when TaskManager is initialized. + static bool initialized_; + // The model used for gathering and processing task data. It is ref counted // because it is passed as a parameter to MessageLoop::InvokeLater(). scoped_refptr<TaskManagerModel> model_; |