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

Issue 1863643002: Add a std::nullptr_t constructor to base::WeakPtr. (Closed)

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

Description

Add a std::nullptr_t constructor to base::WeakPtr. BUG=none Committed: https://crrev.com/efeb19b8a79d8f953f0e432a7491a67ea113b9d8 Cr-Commit-Position: refs/heads/master@{#385267}

Patch Set 1 #

Total comments: 2

Patch Set 2 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -23 lines) Patch
M base/memory/weak_ptr.h View 1 7 chunks +12 lines, -12 lines 0 comments Download
M base/memory/weak_ptr_unittest.cc View 10 chunks +20 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
dcheng
Motivated by https://codereview.chromium.org/1830883002/, where multiple people wondered about this. Matches scoped_ptr^Wstd::unique_ptr but not scoped_refptr (which ...
4 years, 8 months ago (2016-04-05 17:08:13 UTC) #2
sky
Thanks! https://codereview.chromium.org/1863643002/diff/1/base/memory/weak_ptr.h File base/memory/weak_ptr.h (right): https://codereview.chromium.org/1863643002/diff/1/base/memory/weak_ptr.h#newcode206 base/memory/weak_ptr.h:206: WeakPtr(std::nullptr_t) : ptr_(nullptr) { } nit: no {}. ...
4 years, 8 months ago (2016-04-05 17:10:21 UTC) #4
dcheng
https://codereview.chromium.org/1863643002/diff/1/base/memory/weak_ptr.h File base/memory/weak_ptr.h (right): https://codereview.chromium.org/1863643002/diff/1/base/memory/weak_ptr.h#newcode206 base/memory/weak_ptr.h:206: WeakPtr(std::nullptr_t) : ptr_(nullptr) { } On 2016/04/05 at 17:10:21, ...
4 years, 8 months ago (2016-04-05 17:16:33 UTC) #5
sky
LGTM
4 years, 8 months ago (2016-04-05 17:28:49 UTC) #6
danakj
LGTM
4 years, 8 months ago (2016-04-05 17:50:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863643002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863643002/20001
4 years, 8 months ago (2016-04-05 18:29:08 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-05 20:07:49 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 20:08:56 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/efeb19b8a79d8f953f0e432a7491a67ea113b9d8
Cr-Commit-Position: refs/heads/master@{#385267}

Powered by Google App Engine
This is Rietveld 408576698