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

Unified Diff: base/task.h

Issue 5888001: Revert 69243 - Reland 69237 - Fix raw_scoped_refptr_mismatch_checker.h.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | « base/raw_scoped_refptr_mismatch_checker.h ('k') | base/template_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task.h
===================================================================
--- base/task.h (revision 69243)
+++ base/task.h (working copy)
@@ -149,9 +149,8 @@
: obj_(obj),
meth_(meth),
params_(params) {
- COMPILE_ASSERT(
- (base::internal::ParamsUseScopedRefptrCorrectly<Params>::value),
- badscopedrunnablemethodparams);
+ COMPILE_ASSERT((MethodUsesScopedRefptrCorrectly<Method, Params>::value),
+ badscopedrunnablemethodparams);
}
virtual void Run() {
@@ -318,9 +317,8 @@
RunnableMethod(T* obj, Method meth, const Params& params)
: obj_(obj), meth_(meth), params_(params) {
traits_.RetainCallee(obj_);
- COMPILE_ASSERT(
- (base::internal::ParamsUseScopedRefptrCorrectly<Params>::value),
- badrunnablemethodparams);
+ COMPILE_ASSERT((MethodUsesScopedRefptrCorrectly<Method, Params>::value),
+ badrunnablemethodparams);
}
~RunnableMethod() {
@@ -431,9 +429,8 @@
public:
RunnableFunction(Function function, const Params& params)
: function_(function), params_(params) {
- COMPILE_ASSERT(
- (base::internal::ParamsUseScopedRefptrCorrectly<Params>::value),
- badrunnablefunctionparams);
+ COMPILE_ASSERT((FunctionUsesScopedRefptrCorrectly<Function, Params>::value),
+ badrunnablefunctionparams);
}
~RunnableFunction() {
« no previous file with comments | « base/raw_scoped_refptr_mismatch_checker.h ('k') | base/template_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698