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

Unified Diff: base/critical_closure_internal_ios.mm

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase without dcheck_in_ref_count Created 3 years, 9 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
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

Powered by Google App Engine
This is Rietveld 408576698