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

Issue 1993433002: Adds equality operators for comparing scoped_refptr with nullptr. (Closed)

Created:
4 years, 7 months ago by Rob Percival
Modified:
4 years, 7 months ago
Reviewers:
danakj
CC:
chromium-reviews, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds equality operators for comparing scoped_refptr with nullptr. Committed: https://crrev.com/3d1a0004b6d793eb91c438b6058dfbbcf44f4dd7 Cr-Commit-Position: refs/heads/master@{#394620}

Patch Set 1 #

Patch Set 2 : Adds operators for handling nullptr on lhs #

Total comments: 6

Patch Set 3 : Addresses review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -0 lines) Patch
M base/memory/ref_counted.h View 1 2 3 chunks +22 lines, -0 lines 0 comments Download
M base/memory/ref_counted_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993433002/1
4 years, 7 months ago (2016-05-17 21:56:33 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993433002/20001
4 years, 7 months ago (2016-05-17 22:14:06 UTC) #4
Rob Percival
PTAL
4 years, 7 months ago (2016-05-17 23:04:20 UTC) #6
danakj
Oh interesting, I'd have expected this to work since you can implicitly convert to scoped_refptr, ...
4 years, 7 months ago (2016-05-17 23:14:08 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-18 00:51:26 UTC) #9
Rob Percival
On 2016/05/17 23:14:08, danakj wrote: > Oh interesting, I'd have expected this to work since ...
4 years, 7 months ago (2016-05-18 01:03:45 UTC) #10
danakj
On Tue, May 17, 2016 at 6:03 PM, <robpercival@chromium.org> wrote: > On 2016/05/17 23:14:08, danakj ...
4 years, 7 months ago (2016-05-18 01:06:38 UTC) #11
Rob Percival
On 2016/05/18 01:06:38, danakj wrote: > On Tue, May 17, 2016 at 6:03 PM, <mailto:robpercival@chromium.org> ...
4 years, 7 months ago (2016-05-18 01:10:48 UTC) #12
danakj
> I've already done that - see my addition to base/memory/ref_counted_unittest.cc? Oh, I missed that ...
4 years, 7 months ago (2016-05-18 01:12:34 UTC) #13
Rob Percival
https://codereview.chromium.org/1993433002/diff/20001/base/memory/ref_counted.h File base/memory/ref_counted.h (right): https://codereview.chromium.org/1993433002/diff/20001/base/memory/ref_counted.h#newcode448 base/memory/ref_counted.h:448: return lhs.get() == null; On 2016/05/17 23:14:08, danakj wrote: ...
4 years, 7 months ago (2016-05-18 01:17:01 UTC) #14
danakj
LGTM
4 years, 7 months ago (2016-05-18 22:32:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993433002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993433002/40001
4 years, 7 months ago (2016-05-18 22:32:55 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-19 00:49:05 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 00:50:38 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3d1a0004b6d793eb91c438b6058dfbbcf44f4dd7
Cr-Commit-Position: refs/heads/master@{#394620}

Powered by Google App Engine
This is Rietveld 408576698