Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3037)

Unified Diff: base/task.h

Issue 7013014: Added release build assert on attempt to create a RunnableFunction for a function pointer with ad... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task.h
===================================================================
--- base/task.h (revision 85016)
+++ base/task.h (working copy)
@@ -449,6 +449,12 @@
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698