Chromium Code Reviews| Index: base/mac/scoped_block.mm |
| diff --git a/base/mac/scoped_block.mm b/base/mac/scoped_block.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c8d7e66bd0e69a56d326f3bc31ca184715ebb246 |
| --- /dev/null |
| +++ b/base/mac/scoped_block.mm |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import "base/mac/scoped_block.h" |
| + |
|
Nico
2016/04/04 17:53:44
Is the idea that we'll have this file around in no
|
| +namespace base { |
| +namespace mac { |
| +namespace internal { |
| + |
| +id ScopedBlockTraitsRetain(id block) { |
| + return Block_copy(block); |
| +} |
| +void ScopedBlockTraitsRelease(id block) { |
|
Mark Mentovai
2016/04/05 00:09:15
nit: Blank line between functions.
|
| + Block_release(block); |
| +} |
| + |
| +} // namespace internal |
| +} // namespace mac |
| +} // namespace base |