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

Issue 1919723002: Introduce WTF::unretained() and WTF::crossThreadUnretained() (Closed)

Created:
4 years, 8 months ago by hiroshige
Modified:
4 years, 6 months ago
Reviewers:
haraken, Yuta Kitamura, tzik
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, kinuko+watch, blink-reviews-wtf_chromium.org, rwlbuis, krit, drott+blinkwatch_chromium.org, Justin Novosad, hongchan, Rik, blink-reviews, Mads Ager (chromium), jbroman, Raymond Toy, pdr+graphicswatchlist_chromium.org, Stephen Chennney, ajuma+watch-canvas_chromium.org, f(malita), oilpan-reviews, danakj+watch_chromium.org, kouhei+heap_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@Kuroneko_4b_ACTA_WeakPtr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce WTF::unretained() and WTF::crossThreadUnretained() unretained() and crossThreadUnretained are used to annotate unretained raw pointers bound by WTF::bind() and forbid raw pointers in WTF::bind(). crossThreadUnretained() is used for annotating pointers passed across threads and corresponds to previous AllowCrossThreadAccess(). BUG=597856 Committed: https://crrev.com/5639ac31ebb1996a1cdcb3480471b0e65a1ea94c Cr-Commit-Position: refs/heads/master@{#401571}

Patch Set 1 #

Patch Set 2 : Apply unretained() #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : auto-Rebase #

Patch Set 6 #

Total comments: 2

Patch Set 7 : Rebase, add tests. #

Patch Set 8 : Rebase #

Patch Set 9 : Reflect comment #

Total comments: 2

Patch Set 10 : sort #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -21 lines) Patch
M third_party/WebKit/Source/wtf/Functional.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +42 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/wtf/FunctionalTest.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +28 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (27 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919723002/80001
4 years, 7 months ago (2016-04-27 09:28:02 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 11:22:38 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919723002/100001
4 years, 7 months ago (2016-05-17 07:42:31 UTC) #9
hiroshige
PTAL.
4 years, 7 months ago (2016-05-17 08:59:19 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 09:29:30 UTC) #14
Yuta Kitamura
Let's add a unit test so we can check whether this would compile or not. ...
4 years, 7 months ago (2016-05-17 09:37:04 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/140001
4 years, 6 months ago (2016-06-09 09:04:44 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/160001
4 years, 6 months ago (2016-06-09 09:12:21 UTC) #21
hiroshige
Added unretained() to unit tests and updated the CL description. https://codereview.chromium.org/1919723002/diff/100001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/1919723002/diff/100001/third_party/WebKit/Source/wtf/Functional.h#newcode265 ...
4 years, 6 months ago (2016-06-09 09:21:53 UTC) #23
tzik
lgtm https://codereview.chromium.org/1919723002/diff/160001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/1919723002/diff/160001/third_party/WebKit/Source/wtf/Functional.h#newcode417 third_party/WebKit/Source/wtf/Functional.h:417: using WTF::CrossThreadClosure; Could you sort them?
4 years, 6 months ago (2016-06-09 09:38:30 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/225969)
4 years, 6 months ago (2016-06-09 09:55:06 UTC) #26
hiroshige
https://codereview.chromium.org/1919723002/diff/160001/third_party/WebKit/Source/wtf/Functional.h File third_party/WebKit/Source/wtf/Functional.h (right): https://codereview.chromium.org/1919723002/diff/160001/third_party/WebKit/Source/wtf/Functional.h#newcode417 third_party/WebKit/Source/wtf/Functional.h:417: using WTF::CrossThreadClosure; On 2016/06/09 09:38:29, tzik wrote: > Could ...
4 years, 6 months ago (2016-06-14 12:01:04 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/180001
4 years, 6 months ago (2016-06-14 12:01:30 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/87272)
4 years, 6 months ago (2016-06-14 13:10:25 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/180001
4 years, 6 months ago (2016-06-14 13:37:23 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-14 15:08:45 UTC) #35
hiroshige
yutak@, could you take a look?
4 years, 6 months ago (2016-06-23 04:48:44 UTC) #37
haraken
LGTM on my side. Not related, but I'd suggest renaming threadSafeBind to crossThreadBind for consinstency ...
4 years, 6 months ago (2016-06-23 04:59:19 UTC) #38
Yuta Kitamura
lgtm
4 years, 6 months ago (2016-06-23 06:02:33 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/180001
4 years, 6 months ago (2016-06-23 08:06:07 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/25432) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-23 08:07:50 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919723002/200001
4 years, 6 months ago (2016-06-23 08:35:34 UTC) #47
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-23 09:55:17 UTC) #49
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 09:56:59 UTC) #51
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5639ac31ebb1996a1cdcb3480471b0e65a1ea94c
Cr-Commit-Position: refs/heads/master@{#401571}

Powered by Google App Engine
This is Rietveld 408576698