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

Issue 2790463002: Fix WTF::makeUnique for arrays (Closed)

Created:
3 years, 8 months ago by cblume
Modified:
3 years, 8 months ago
Reviewers:
esprehn, Yuta Kitamura
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix WTF::makeUnique for arrays base::makeUnique and std::make_unique support allocating arrays with the syntax base::makeUnique<char[]>(20). WTF::makeUnique calls WTF::IsGarbageCollectedType<T> to make sure it isn't attempting to makeUnique on a GC type. But that requires T be a complete type, and char[] isn't. R=esprehn@chromium.org BUG=706715 Review-Url: https://codereview.chromium.org/2790463002 Cr-Commit-Position: refs/heads/master@{#460850} Committed: https://chromium.googlesource.com/chromium/src/+/54702b16778aa3319f93a32d3ffdc4aef1c9a831

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updating include path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/PtrUtil.h View 2 chunks +2 lines, -1 line 0 comments Download
A third_party/WebKit/Source/platform/wtf/PtrUtilTest.cpp View 1 1 chunk +14 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (11 generated)
cblume
PTAL
3 years, 8 months ago (2017-03-30 06:52:02 UTC) #3
Yuta Kitamura
LGTM w/ nits https://codereview.chromium.org/2790463002/diff/1/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/2790463002/diff/1/third_party/WebKit/Source/platform/BUILD.gn#newcode1862 third_party/WebKit/Source/platform/BUILD.gn:1862: "wtf/PtrUtilTest.cpp", This is strange but understandable ...
3 years, 8 months ago (2017-03-30 07:00:33 UTC) #5
cblume
https://codereview.chromium.org/2790463002/diff/1/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/2790463002/diff/1/third_party/WebKit/Source/platform/BUILD.gn#newcode1862 third_party/WebKit/Source/platform/BUILD.gn:1862: "wtf/PtrUtilTest.cpp", On 2017/03/30 07:00:33, Yuta Kitamura wrote: > This ...
3 years, 8 months ago (2017-03-30 07:11:22 UTC) #8
Yuta Kitamura
https://codereview.chromium.org/2790463002/diff/1/third_party/WebKit/Source/platform/BUILD.gn File third_party/WebKit/Source/platform/BUILD.gn (right): https://codereview.chromium.org/2790463002/diff/1/third_party/WebKit/Source/platform/BUILD.gn#newcode1862 third_party/WebKit/Source/platform/BUILD.gn:1862: "wtf/PtrUtilTest.cpp", NP, just land this and I'll settle the ...
3 years, 8 months ago (2017-03-30 08:45:49 UTC) #9
cblume
esprehn@, I think I still need your approval for platform/BUILD.gn
3 years, 8 months ago (2017-03-30 18:45:47 UTC) #12
esprehn
lgtm, we should get a BUILD file into platform/wtf so the OWNERS inside there can ...
3 years, 8 months ago (2017-03-30 19:04:04 UTC) #13
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/2790463002/20001
3 years, 8 months ago (2017-03-30 19:20:55 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 19:39:25 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/54702b16778aa3319f93a32d3ffd...

Powered by Google App Engine
This is Rietveld 408576698