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

Issue 2446403006: Member initialization for scoped_refptr<T>::ptr_. (Closed)

Created:
4 years, 1 month ago by gab
Modified:
4 years, 1 month ago
Reviewers:
danakj
CC:
chromium-reviews, gavinp+memory_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Member initialization for scoped_refptr<T>::ptr_. Also augment OpaqueRefCounted tests to cover move constructors and RefCountedThreadSafe. BUG=653916 Committed: https://crrev.com/37af9ea6080ce52e001189255512bd5bfa1c6c45 Cr-Commit-Position: refs/heads/master@{#428746}

Patch Set 1 #

Patch Set 2 : +move_assigned #

Patch Set 3 : {} instead of default? #

Total comments: 4

Patch Set 4 : remove extraneous TestOpaqueRefCounted calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -14 lines) Patch
M base/memory/ref_counted.h View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M base/memory/ref_counted_unittest.cc View 1 2 3 2 chunks +29 lines, -6 lines 0 comments Download
M base/test/opaque_ref_counted.h View 1 chunk +5 lines, -0 lines 0 comments Download
M base/test/opaque_ref_counted.cc View 2 chunks +27 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 36 (25 generated)
gab
Dana PTAL, for some reason which I don't understand: {} compiles but not = default; ...
4 years, 1 month ago (2016-10-27 18:34:34 UTC) #16
gab
On 2016/10/27 18:34:34, gab wrote: > Dana PTAL, for some reason which I don't understand: ...
4 years, 1 month ago (2016-10-27 18:37:51 UTC) #17
danakj
On 2016/10/27 18:37:51, gab wrote: > On 2016/10/27 18:34:34, gab wrote: > > Dana PTAL, ...
4 years, 1 month ago (2016-10-27 22:10:35 UTC) #20
danakj
https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc File base/memory/ref_counted_unittest.cc (right): https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc#newcode173 base/memory/ref_counted_unittest.cc:173: scoped_refptr<base::OpaqueRefCounted> moved(std::move(initial)); Isn't this just testing different ways to ...
4 years, 1 month ago (2016-10-27 22:10:54 UTC) #21
gab
https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc File base/memory/ref_counted_unittest.cc (right): https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc#newcode173 base/memory/ref_counted_unittest.cc:173: scoped_refptr<base::OpaqueRefCounted> moved(std::move(initial)); On 2016/10/27 22:10:54, danakj wrote: > Isn't ...
4 years, 1 month ago (2016-10-28 14:02:27 UTC) #22
danakj
https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc File base/memory/ref_counted_unittest.cc (right): https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc#newcode173 base/memory/ref_counted_unittest.cc:173: scoped_refptr<base::OpaqueRefCounted> moved(std::move(initial)); On 2016/10/28 14:02:26, gab wrote: > On ...
4 years, 1 month ago (2016-10-29 00:49:09 UTC) #27
danakj
LGTM otherwise
4 years, 1 month ago (2016-10-29 00:50:00 UTC) #28
gab
Thanks, done https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc File base/memory/ref_counted_unittest.cc (right): https://codereview.chromium.org/2446403006/diff/40001/base/memory/ref_counted_unittest.cc#newcode173 base/memory/ref_counted_unittest.cc:173: scoped_refptr<base::OpaqueRefCounted> moved(std::move(initial)); On 2016/10/29 00:49:09, danakj wrote: ...
4 years, 1 month ago (2016-10-31 15:01:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446403006/60001
4 years, 1 month ago (2016-10-31 15:02:33 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-31 17:03:52 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 17:16:07 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/37af9ea6080ce52e001189255512bd5bfa1c6c45
Cr-Commit-Position: refs/heads/master@{#428746}

Powered by Google App Engine
This is Rietveld 408576698