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

Side by Side Diff: base/mac/scoped_block.mm

Issue 1855483004: [iOS/OS X] Allow base::scoped_nsobject<> to be used when ARC is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to build/config/compiler/BUILD.gn Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #import "base/mac/scoped_block.h"
6
Nico 2016/04/04 17:53:44 Is the idea that we'll have this file around in no
7 namespace base {
8 namespace mac {
9 namespace internal {
10
11 id ScopedBlockTraitsRetain(id block) {
12 return Block_copy(block);
13 }
14 void ScopedBlockTraitsRelease(id block) {
Mark Mentovai 2016/04/05 00:09:15 nit: Blank line between functions.
15 Block_release(block);
16 }
17
18 } // namespace internal
19 } // namespace mac
20 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698