Index: base/critical_closure_internal_ios.mm |
diff --git a/base/critical_closure_internal_ios.mm b/base/critical_closure_internal_ios.mm |
index 4088a471735e164cded6baf66c6fef8ae9388372..e35eca0c7e05ca35103bb27404863f2a7065e9e0 100644 |
--- a/base/critical_closure_internal_ios.mm |
+++ b/base/critical_closure_internal_ios.mm |
@@ -13,13 +13,13 @@ bool IsMultiTaskingSupported() { |
return [[UIDevice currentDevice] isMultitaskingSupported]; |
} |
-CriticalClosure::CriticalClosure(Closure closure) |
+CriticalClosure::CriticalClosure(OnceClosure closure) |
: closure_(std::move(closure)) {} |
CriticalClosure::~CriticalClosure() {} |
void CriticalClosure::Run() { |
- closure_.Run(); |
+ std::move(closure_).Run(); |
} |
} // namespace internal |