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

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

Created:
4 years, 1 month ago by Gleb Lanbin
Modified:
4 years, 1 month ago
Reviewers:
haraken, Yuta Kitamura
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WTF::MakeUnique to mirror C++14's std::make_unique. This implementation is identical to base/memory/ptr_util.h. BUG=662304 Committed: https://crrev.com/dc91022fc289e4bdfe0ca9a857775b91762d0b78 Cr-Commit-Position: refs/heads/master@{#429878}

Patch Set 1 #

Patch Set 2 : reuse the implementation from base::MakeUnique #

Total comments: 1

Patch Set 3 : rename MakeUnique -> makeUnique #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M third_party/WebKit/Source/wtf/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/PtrUtil.h View 1 2 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (37 generated)
Gleb Lanbin
4 years, 1 month ago (2016-10-30 03:24:51 UTC) #20
haraken
+yutak What's our plan on MakeUnique and WrapUnique in Blink? I remember we didn't want ...
4 years, 1 month ago (2016-10-30 05:54:51 UTC) #22
Yuta Kitamura
I'm OK with adding MakeUnique as long as we need it. Isn't it possible to ...
4 years, 1 month ago (2016-10-31 09:34:13 UTC) #23
Gleb Lanbin
On 2016/10/31 09:34:13, Yuta Kitamura wrote: > I'm OK with adding MakeUnique as long as ...
4 years, 1 month ago (2016-10-31 14:44:55 UTC) #24
Yuta Kitamura
On 2016/10/31 14:44:55, glebl wrote: > On 2016/10/31 09:34:13, Yuta Kitamura wrote: > > I'm ...
4 years, 1 month ago (2016-11-01 05:52:49 UTC) #25
haraken
On 2016/11/01 05:52:49, Yuta Kitamura wrote: > On 2016/10/31 14:44:55, glebl wrote: > > On ...
4 years, 1 month ago (2016-11-01 06:24:16 UTC) #26
Gleb Lanbin
On 2016/11/01 06:24:16, haraken wrote: > On 2016/11/01 05:52:49, Yuta Kitamura wrote: > > On ...
4 years, 1 month ago (2016-11-01 18:35:41 UTC) #27
haraken
On 2016/11/01 18:35:41, glebl wrote: > On 2016/11/01 06:24:16, haraken wrote: > > On 2016/11/01 ...
4 years, 1 month ago (2016-11-02 01:29:26 UTC) #28
Gleb Lanbin
On 2016/11/02 01:29:26, haraken wrote: > On 2016/11/01 18:35:41, glebl wrote: > > On 2016/11/01 ...
4 years, 1 month ago (2016-11-03 23:01:48 UTC) #31
Yuta Kitamura
LGTM w/ nit https://codereview.chromium.org/2455313003/diff/20001/third_party/WebKit/Source/wtf/PtrUtil.h File third_party/WebKit/Source/wtf/PtrUtil.h (right): https://codereview.chromium.org/2455313003/diff/20001/third_party/WebKit/Source/wtf/PtrUtil.h#newcode33 third_party/WebKit/Source/wtf/PtrUtil.h:33: auto MakeUnique(Args&&... args) I want to ...
4 years, 1 month ago (2016-11-04 05:56:23 UTC) #38
Gleb Lanbin
thanks for the review
4 years, 1 month ago (2016-11-04 06:12:32 UTC) #39
haraken
LGTM assuming that you plan to replace all wrapUnique(new T)_s with MakeUnique in a reasonable ...
4 years, 1 month ago (2016-11-04 06:15:45 UTC) #41
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/2455313003/40001
4 years, 1 month ago (2016-11-04 13:39:29 UTC) #48
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-04 13:43:53 UTC) #50
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 13:47:06 UTC) #52
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dc91022fc289e4bdfe0ca9a857775b91762d0b78
Cr-Commit-Position: refs/heads/master@{#429878}

Powered by Google App Engine
This is Rietveld 408576698