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

Issue 1532433002: Add base::MakeUnique to mirror C++14's std::make_unique. (Closed)

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

Description

Add base::MakeUnique to mirror C++14's std::make_unique. BUG=554522 Committed: https://crrev.com/c22f00f4194a50548a81a2caed975cbdc340c75a Cr-Commit-Position: refs/heads/master@{#392744}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -0 lines) Patch
M base/memory/ptr_util.h View 2 chunks +52 lines, -0 lines 2 comments Download
M base/memory/ptr_util_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (3 generated)
dcheng
5 years ago (2015-12-15 23:40:16 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h File base/memory/ptr_util.h (right): https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h#newcode44 base/memory/ptr_util.h:44: // calls to `new` should be treated with scrutiny. ...
5 years ago (2015-12-15 23:53:41 UTC) #3
dcheng
https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h File base/memory/ptr_util.h (right): https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h#newcode44 base/memory/ptr_util.h:44: // calls to `new` should be treated with scrutiny. ...
5 years ago (2015-12-15 23:59:50 UTC) #4
Jeffrey Yasskin
On 2015/12/15 23:59:50, dcheng wrote: > https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h > File base/memory/ptr_util.h (right): > > https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h#newcode44 > ...
5 years ago (2015-12-16 00:02:13 UTC) #5
dcheng
On 2015/12/16 at 00:02:13, jyasskin wrote: > On 2015/12/15 23:59:50, dcheng wrote: > > https://codereview.chromium.org/1532433002/diff/1/base/memory/ptr_util.h ...
5 years ago (2015-12-17 18:42:26 UTC) #6
Ryan Sleevi
On 2015/12/17 18:42:26, dcheng wrote: > Doh, right. So what I'd say is that the ...
5 years ago (2015-12-17 18:45:23 UTC) #7
Nico
What's the motivation for adding this at this point?
5 years ago (2015-12-17 18:49:55 UTC) #8
dcheng
On 2015/12/17 at 18:49:55, thakis wrote: > What's the motivation for adding this at this ...
5 years ago (2015-12-17 19:01:51 UTC) #9
Nico
On 2015/12/17 19:01:51, dcheng wrote: > On 2015/12/17 at 18:49:55, thakis wrote: > > What's ...
5 years ago (2015-12-17 19:06:24 UTC) #10
danakj
On Thu, Dec 17, 2015 at 11:06 AM, <thakis@chromium.org> wrote: > On 2015/12/17 19:01:51, dcheng ...
5 years ago (2015-12-17 19:45:32 UTC) #11
danakj
bumpyity bump. I'd really like to see people writing MakeUnique(foo, bar) instead of WrapUnique(new Thing(foo, ...
4 years, 9 months ago (2016-03-14 20:30:29 UTC) #12
esprehn
On 2016/03/14 at 20:30:29, danakj wrote: > bumpyity bump. I'd really like to see people ...
4 years, 8 months ago (2016-04-01 03:38:11 UTC) #13
dcheng
On 2016/04/01 at 03:38:11, esprehn wrote: > On 2016/03/14 at 20:30:29, danakj wrote: > > ...
4 years, 8 months ago (2016-04-01 03:44:24 UTC) #14
Peter Kasting
FWIW, "Effective Modern C++" item 21 deals with motivations for using the make_xxx() family of ...
4 years, 8 months ago (2016-04-01 05:06:32 UTC) #15
dcheng
Ping =)
4 years, 8 months ago (2016-04-19 16:25:59 UTC) #16
Nico
If Dana thinks we should do this, then go ahead. It's in the "I can't ...
4 years, 8 months ago (2016-04-20 20:44:29 UTC) #17
jbroman
On 2016/04/20 at 20:44:29, thakis wrote: > If Dana thinks we should do this, then ...
4 years, 8 months ago (2016-04-23 03:28:09 UTC) #18
dcheng
On 2016/04/23 at 03:28:09, jbroman wrote: > On 2016/04/20 at 20:44:29, thakis wrote: > > ...
4 years, 8 months ago (2016-04-25 23:27:14 UTC) #19
jbroman
On 2016/04/25 at 23:27:14, dcheng wrote: > On 2016/04/23 at 03:28:09, jbroman wrote: > > ...
4 years, 7 months ago (2016-05-03 21:32:06 UTC) #20
dcheng
On 2016/05/03 at 21:32:06, jbroman wrote: > On 2016/04/25 at 23:27:14, dcheng wrote: > > ...
4 years, 7 months ago (2016-05-04 16:49:47 UTC) #21
dcheng
Can I get an official LGTM? I've landed the CL to make codesearch look through ...
4 years, 7 months ago (2016-05-10 04:01:01 UTC) #22
danakj
LGTM
4 years, 7 months ago (2016-05-10 20:56:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532433002/1
4 years, 7 months ago (2016-05-10 21:00:22 UTC) #25
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-10 22:21:48 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 22:24:43 UTC) #28
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c22f00f4194a50548a81a2caed975cbdc340c75a
Cr-Commit-Position: refs/heads/master@{#392744}

Powered by Google App Engine
This is Rietveld 408576698