diff options
Diffstat (limited to 'base/task.h')
-rw-r--r-- | base/task.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/base/task.h b/base/task.h index 1949e74..b21ccd8 100644 --- a/base/task.h +++ b/base/task.h @@ -149,9 +149,8 @@ class ScopedRunnableMethodFactory { : 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 @@ class RunnableMethod : public CancelableTask { 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 @@ class RunnableFunction : public CancelableTask { 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() { |