diff options
-rw-r--r-- | base/task.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/task.h b/base/task.h index 643e418..baec32c 100644 --- a/base/task.h +++ b/base/task.h @@ -449,6 +449,12 @@ class RunnableFunction : public Task { COMPILE_ASSERT( (base::internal::ParamsUseScopedRefptrCorrectly<Params>::value), badrunnablefunctionparams); +#if defined(OS_WIN) + // TODO(apatrick): Remove this ASAP. I think somewhere in the code we're + // posting a task to call a function pointer with this value. Step 1 is + // to find the site it is posted from. http://crbug.com/81449. + CHECK(reinterpret_cast<int>(function) != 0x00000001); +#endif } ~RunnableFunction() { |