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

Issue 10818034: Adding the possibility to build a closure from an ObjectiveC block. (Closed)

Created:
8 years, 5 months ago by noyau (Ping after 24h)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adding the possibility to build a closure from an ObjectiveC block. This lead to more readeable ObjectiveC code as the bound code is right next to where it is scheduled as opposed to be outside the class–usually in a separate function in an anonymous namespace. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148357

Patch Set 1 #

Patch Set 2 : Renaming the tests. #

Total comments: 2

Patch Set 3 : Adding missing namespace comment. #

Total comments: 6

Patch Set 4 : Adding whitespace. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -9 lines) Patch
M base/base.gyp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download
A base/mac/bind_objc_block.h View 1 chunk +17 lines, -0 lines 0 comments Download
A base/mac/bind_objc_block.mm View 1 2 3 1 chunk +26 lines, -0 lines 2 comments Download
A + base/mac/bind_objc_block_unittest.mm View 1 1 chunk +12 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
noyau (Ping after 24h)
Stuart for initial review.
8 years, 5 months ago (2012-07-24 18:00:16 UTC) #1
stuartmorgan
LGTM with nit. +Mark https://chromiumcodereview.appspot.com/10818034/diff/3001/base/mac/bind_objc_block.mm File base/mac/bind_objc_block.mm (right): https://chromiumcodereview.appspot.com/10818034/diff/3001/base/mac/bind_objc_block.mm#newcode16 base/mac/bind_objc_block.mm:16: } Add a // namespace
8 years, 5 months ago (2012-07-25 12:45:26 UTC) #2
noyau (Ping after 24h)
https://chromiumcodereview.appspot.com/10818034/diff/3001/base/mac/bind_objc_block.mm File base/mac/bind_objc_block.mm (right): https://chromiumcodereview.appspot.com/10818034/diff/3001/base/mac/bind_objc_block.mm#newcode16 base/mac/bind_objc_block.mm:16: } On 2012/07/25 12:45:26, stuartmorgan wrote: > Add a ...
8 years, 5 months ago (2012-07-25 12:56:34 UTC) #3
Mark Mentovai
https://chromiumcodereview.appspot.com/10818034/diff/10001/base/mac/bind_objc_block.mm File base/mac/bind_objc_block.mm (right): https://chromiumcodereview.appspot.com/10818034/diff/10001/base/mac/bind_objc_block.mm#newcode10 base/mac/bind_objc_block.mm:10: namespace { Blank line after this one, and another ...
8 years, 5 months ago (2012-07-25 14:06:30 UTC) #4
noyau (Ping after 24h)
https://chromiumcodereview.appspot.com/10818034/diff/10001/base/mac/bind_objc_block.mm File base/mac/bind_objc_block.mm (right): https://chromiumcodereview.appspot.com/10818034/diff/10001/base/mac/bind_objc_block.mm#newcode10 base/mac/bind_objc_block.mm:10: namespace { On 2012/07/25 14:06:30, Mark Mentovai wrote: > ...
8 years, 5 months ago (2012-07-25 14:27:58 UTC) #5
Mark Mentovai
https://chromiumcodereview.appspot.com/10818034/diff/5003/base/mac/bind_objc_block.mm File base/mac/bind_objc_block.mm (right): https://chromiumcodereview.appspot.com/10818034/diff/5003/base/mac/bind_objc_block.mm#newcode16 base/mac/bind_objc_block.mm:16: } Won’t the scoped_nsobject<> destructor run here, doing [block ...
8 years, 5 months ago (2012-07-25 15:40:19 UTC) #6
stuartmorgan
https://chromiumcodereview.appspot.com/10818034/diff/5003/base/mac/bind_objc_block.mm File base/mac/bind_objc_block.mm (right): https://chromiumcodereview.appspot.com/10818034/diff/5003/base/mac/bind_objc_block.mm#newcode16 base/mac/bind_objc_block.mm:16: } On 2012/07/25 15:40:19, Mark Mentovai wrote: > Won’t ...
8 years, 5 months ago (2012-07-25 15:56:31 UTC) #7
Mark Mentovai
Oh, right, I forgot that we added a copy constructor to scoped_nsobject<> in r121215, http://codereview.chromium.org/9349016. ...
8 years, 5 months ago (2012-07-25 16:02:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/10818034/5003
8 years, 5 months ago (2012-07-25 16:18:36 UTC) #9
commit-bot: I haz the power
8 years, 5 months ago (2012-07-25 17:48:03 UTC) #10
Change committed as 148357

Powered by Google App Engine
This is Rietveld 408576698