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

Issue 1963323004: Use explicit operator bool in scoped_refptr. (Closed)

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

Description

Use explicit operator bool in scoped_refptr. Previously the "Safe Bool Idiom" was incorrectly implemented using a typedef ... Testable that leaked the raw pointer of scoped_refptr. Code relying on that side effect has been corrected in https://codereview.chromium.org/1958823002/ The C++11 explicit conversion operator feature is now available and this hack is no longer required, and usage will be enforced to not inadvertently use the raw pointer. BUG=610048 Committed: https://crrev.com/116b5a887f10705fdaf736b679f52cc84fd178d9 Cr-Commit-Position: refs/heads/master@{#393195}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -24 lines) Patch
M base/memory/ref_counted.h View 2 chunks +5 lines, -24 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (6 generated)
scheib
PTAL, this is the split from previous patch.
4 years, 7 months ago (2016-05-11 23:03:45 UTC) #4
danakj
LGTM
4 years, 7 months ago (2016-05-12 00:15:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963323004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963323004/1
4 years, 7 months ago (2016-05-12 04:20:18 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-12 06:19:02 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 06:20:30 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/116b5a887f10705fdaf736b679f52cc84fd178d9
Cr-Commit-Position: refs/heads/master@{#393195}

Powered by Google App Engine
This is Rietveld 408576698