Index: base/thread_task_runner_handle.h |
diff --git a/base/thread_task_runner_handle.h b/base/thread_task_runner_handle.h |
index 9a9dcfd067d502b0029c0f19757c6c38115bce67..238435f978e167a251c77e7e38eed7c2390d6971 100644 |
--- a/base/thread_task_runner_handle.h |
+++ b/base/thread_task_runner_handle.h |
@@ -21,6 +21,10 @@ class BASE_EXPORT ThreadTaskRunnerHandle { |
// Gets the SingleThreadTaskRunner for the current thread. |
static scoped_refptr<SingleThreadTaskRunner> Get(); |
+ // Returns true if the SingleThreadTaskRunner is already created for |
+ // the current thread. |
+ static bool IsSet(); |
+ |
// Binds |task_runner| to the current thread. |task_runner| must belong |
// to the current thread for this to succeed. |
explicit ThreadTaskRunnerHandle( |