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

Issue 9349016: Update scoped_nsobject to be copyable. (Closed)

Created:
8 years, 10 months ago by qsr
Modified:
8 years, 10 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Update scoped_nsobject to be copyable. Having copyable scoped_nsobject allows to use those in C++ structure, in stl datatypes as well as with the base::Callback API. This CL also introduces an optional parameter to the constructor of scoped_nsobject to allow to state what is the ownership policy. BUG= none TEST= memory/scoped_nsobject_mac_unittest.mm Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121215

Patch Set 1 #

Patch Set 2 : Correct documentation. #

Total comments: 32

Patch Set 3 : Follow mark review. #

Patch Set 4 : Correcting following test results. #

Total comments: 10

Patch Set 5 : Follow review, #

Total comments: 2

Patch Set 6 : Spelling #

Total comments: 10

Patch Set 7 : Follow review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -136 lines) Patch
M base/base.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/memory/scoped_nsobject.h View 1 2 3 4 5 6 2 chunks +85 lines, -136 lines 0 comments Download
A base/memory/scoped_nsobject_unittest.mm View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
qsr
8 years, 10 months ago (2012-02-07 14:46:24 UTC) #1
Mark Mentovai
https://chromiumcodereview.appspot.com/9349016/diff/1001/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): https://chromiumcodereview.appspot.com/9349016/diff/1001/base/memory/scoped_nsobject.h#newcode19 base/memory/scoped_nsobject.h:19: // constructor or in reset()), it takes over the ...
8 years, 10 months ago (2012-02-07 17:13:17 UTC) #2
qsr
http://codereview.chromium.org/9349016/diff/1001/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): http://codereview.chromium.org/9349016/diff/1001/base/memory/scoped_nsobject.h#newcode19 base/memory/scoped_nsobject.h:19: // constructor or in reset()), it takes over the ...
8 years, 10 months ago (2012-02-08 14:59:41 UTC) #3
Mark Mentovai
http://codereview.chromium.org/9349016/diff/5001/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): http://codereview.chromium.org/9349016/diff/5001/base/memory/scoped_nsobject.h#newcode36 base/memory/scoped_nsobject.h:36: namespace policy { You call it policy here but ...
8 years, 10 months ago (2012-02-08 15:24:00 UTC) #4
qsr
http://codereview.chromium.org/9349016/diff/5001/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): http://codereview.chromium.org/9349016/diff/5001/base/memory/scoped_nsobject.h#newcode36 base/memory/scoped_nsobject.h:36: namespace policy { On 2012/02/08 15:24:00, Mark Mentovai wrote: ...
8 years, 10 months ago (2012-02-08 15:52:15 UTC) #5
Avi (use Gerrit)
drive by https://chromiumcodereview.appspot.com/9349016/diff/8001/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): https://chromiumcodereview.appspot.com/9349016/diff/8001/base/memory/scoped_nsobject.h#newcode25 base/memory/scoped_nsobject.h:25: // ownsership is not changed. spelling: ownership
8 years, 10 months ago (2012-02-08 15:56:16 UTC) #6
qsr
http://codereview.chromium.org/9349016/diff/8001/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): http://codereview.chromium.org/9349016/diff/8001/base/memory/scoped_nsobject.h#newcode25 base/memory/scoped_nsobject.h:25: // ownsership is not changed. On 2012/02/08 15:56:16, Avi ...
8 years, 10 months ago (2012-02-08 16:37:26 UTC) #7
Mark Mentovai
This is now looking pretty strong. http://codereview.chromium.org/9349016/diff/6004/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): http://codereview.chromium.org/9349016/diff/6004/base/memory/scoped_nsobject.h#newcode27 base/memory/scoped_nsobject.h:27: // scoped_nsprotocol<> has ...
8 years, 10 months ago (2012-02-08 17:03:04 UTC) #8
qsr
http://codereview.chromium.org/9349016/diff/6004/base/memory/scoped_nsobject.h File base/memory/scoped_nsobject.h (right): http://codereview.chromium.org/9349016/diff/6004/base/memory/scoped_nsobject.h#newcode27 base/memory/scoped_nsobject.h:27: // scoped_nsprotocol<> has the same behavior than scoped_nsobject, but ...
8 years, 10 months ago (2012-02-08 17:52:20 UTC) #9
Mark Mentovai
LGTM
8 years, 10 months ago (2012-02-08 17:59:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/9349016/4006
8 years, 10 months ago (2012-02-09 07:52:48 UTC) #11
commit-bot: I haz the power
8 years, 10 months ago (2012-02-09 09:51:00 UTC) #12
Change committed as 121215

Powered by Google App Engine
This is Rietveld 408576698