1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/critical_closure.h"
7 #import <UIKit/UIKit.h>
12 bool IsMultiTaskingSupported() {
13 return [[UIDevice currentDevice] isMultitaskingSupported];
16 CriticalClosure::CriticalClosure(OnceClosure closure)
17 : closure_(std::move(closure)) {}
19 CriticalClosure::~CriticalClosure() {}
21 void CriticalClosure::Run() {
22 std::move(closure_).Run();
25 } // namespace internal