| Index: chrome/browser/metrics/thread_watcher.h
|
| ===================================================================
|
| --- chrome/browser/metrics/thread_watcher.h (revision 110237)
|
| +++ chrome/browser/metrics/thread_watcher.h (working copy)
|
| @@ -462,7 +462,7 @@
|
| virtual ~WatchDogThread();
|
|
|
| // Callable on any thread. Returns whether you're currently on a
|
| - // WatchDogThread.
|
| + // watchdog_thread_.
|
| static bool CurrentlyOnWatchDogThread();
|
|
|
| // These are the same methods in message_loop.h, but are guaranteed to either
|
| @@ -486,6 +486,11 @@
|
| const base::Closure& task,
|
| int64 delay_ms);
|
|
|
| + // This lock protects watchdog_thread_.
|
| + static base::Lock lock_;
|
| +
|
| + static WatchDogThread* watchdog_thread_; // The singleton of this class.
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WatchDogThread);
|
| };
|
|
|
|
|