Index: base/critical_closure_internal_ios.mm |
diff --git a/base/critical_closure_internal_ios.mm b/base/critical_closure_internal_ios.mm |
index 063d3dd9a24e08b22dc3847d5f3a1da39a3cd265..4088a471735e164cded6baf66c6fef8ae9388372 100644 |
--- a/base/critical_closure_internal_ios.mm |
+++ b/base/critical_closure_internal_ios.mm |
@@ -13,7 +13,8 @@ bool IsMultiTaskingSupported() { |
return [[UIDevice currentDevice] isMultitaskingSupported]; |
} |
-CriticalClosure::CriticalClosure(const Closure& closure) : closure_(closure) {} |
+CriticalClosure::CriticalClosure(Closure closure) |
+ : closure_(std::move(closure)) {} |
CriticalClosure::~CriticalClosure() {} |