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

Issue 2096623002: Update ParamStorageTraits to disallow raw pointers and Member<> (2/5) (Closed)

Created:
4 years, 6 months ago by tzik
Modified:
4 years, 5 months ago
Reviewers:
haraken, hiroshige, sof
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@unretained
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update ParamStorageTraits to disallow raw pointers and Member<> This CL removes ParamStorageTraits for pointers and add static_assert to ban raw pointers and Member<>, so that WTF::bind and blink::threadSafeBind start rejecting them. BUG=597856 Committed: https://crrev.com/74736be3a74e419cbd88bf36e3855f375b913db5 Cr-Commit-Position: refs/heads/master@{#402113}

Patch Set 1 #

Patch Set 2 : gcc fix #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : mention wrap{,CrossThread}{,Weak}Persistent. ban WeakMember too. #

Total comments: 2

Patch Set 5 : typo fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -26 lines) Patch
M third_party/WebKit/Source/wtf/Functional.h View 1 2 3 4 3 chunks +5 lines, -26 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (10 generated)
tzik
PTAL
4 years, 6 months ago (2016-06-24 11:11:47 UTC) #5
sof
https://codereview.chromium.org/2096623002/diff/40001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/2096623002/diff/40001/third_party/WebKit/Source/wtf/Functional.h#newcode219 third_party/WebKit/Source/wtf/Functional.h:219: static_assert(!std::is_pointer<T>::value, "Raw pointer is not allowed to bind into ...
4 years, 6 months ago (2016-06-24 11:37:20 UTC) #6
tzik
https://codereview.chromium.org/2096623002/diff/40001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/2096623002/diff/40001/third_party/WebKit/Source/wtf/Functional.h#newcode219 third_party/WebKit/Source/wtf/Functional.h:219: static_assert(!std::is_pointer<T>::value, "Raw pointer is not allowed to bind into ...
4 years, 6 months ago (2016-06-24 13:13:33 UTC) #7
sof
lgtm
4 years, 6 months ago (2016-06-24 18:47:13 UTC) #8
haraken
LGTM
4 years, 6 months ago (2016-06-24 22:53:09 UTC) #9
hiroshige
lgtm with a nit. https://codereview.chromium.org/2096623002/diff/60001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/2096623002/diff/60001/third_party/WebKit/Source/wtf/Functional.h#newcode221 third_party/WebKit/Source/wtf/Functional.h:221: static_assert(!IsSubclassOfTemplate<T, blink::Member>::value && !IsSubclassOfTemplate<T, blink::WeakMember>::value, ...
4 years, 6 months ago (2016-06-26 08:12:14 UTC) #11
tzik
https://codereview.chromium.org/2096623002/diff/60001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/2096623002/diff/60001/third_party/WebKit/Source/wtf/Functional.h#newcode221 third_party/WebKit/Source/wtf/Functional.h:221: static_assert(!IsSubclassOfTemplate<T, blink::Member>::value && !IsSubclassOfTemplate<T, blink::WeakMember>::value, "Member and WeakMember are ...
4 years, 5 months ago (2016-06-26 19:03:05 UTC) #12
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/2096623002/80001
4 years, 5 months ago (2016-06-27 04:19:53 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-27 04:58:51 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 05:00:43 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/74736be3a74e419cbd88bf36e3855f375b913db5
Cr-Commit-Position: refs/heads/master@{#402113}

Powered by Google App Engine
This is Rietveld 408576698