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

Issue 1909353003: Allow passing WeakPtr across threads without AllowCrossThreadAccess() (Closed)

Created:
4 years, 8 months ago by hiroshige
Modified:
4 years, 7 months ago
Reviewers:
kinuko, haraken, tzik
CC:
chromium-reviews, blink-reviews-html_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@Kuroneko_4a_ACTA_ThreadSafeRefCounted
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow passing WeakPtr across threads without AllowCrossThreadAccess() This removes AllowCrossThreadAccess() for WeakPtr and adds CrossThreadCopier for WeakPtr instead. This CL doesn't introduce crossThreadWeakPtr(), because: - If the thread restriction of WeakPtr is violated, the assertions in WeakPtr will fail quite reliably if covered by tests. Therefore, annotations like AllowCrossThreadAccess()/crossThreadWeakPtr() is not so essential in catching errors. - There is no CrossThreadWeakPtr, so the wrapper crossThreadWeakPtr() can be confusing. BUG=597856 Committed: https://crrev.com/e656f4c55f88ea32473335e17d6fc2065f119ef2 Cr-Commit-Position: refs/heads/master@{#394154}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : auto-Rebase #

Patch Set 4 : Rebase, Add CrossThreadCopier for WeakPTr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -20 lines) Patch
M third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 8 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/CrossThreadCopier.h View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 30 (15 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/1909353003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909353003/1
4 years, 8 months ago (2016-04-22 13:57:59 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 15:28:23 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909353003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909353003/20001
4 years, 7 months ago (2016-04-27 06:52:11 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 08:13:29 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909353003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909353003/40001
4 years, 7 months ago (2016-04-27 09:28:01 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 13:08:47 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909353003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909353003/60001
4 years, 7 months ago (2016-05-17 06:44:48 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 08:27:13 UTC) #19
hiroshige
PTAL.
4 years, 7 months ago (2016-05-17 08:57:59 UTC) #21
haraken
LGTM
4 years, 7 months ago (2016-05-17 08:59:18 UTC) #22
kinuko
lgtm/2
4 years, 7 months ago (2016-05-17 10:04:02 UTC) #23
tzik
lgtm
4 years, 7 months ago (2016-05-17 11:16:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909353003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909353003/60001
4 years, 7 months ago (2016-05-17 17:23:51 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-17 17:27:14 UTC) #28
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 17:29:00 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e656f4c55f88ea32473335e17d6fc2065f119ef2
Cr-Commit-Position: refs/heads/master@{#394154}

Powered by Google App Engine
This is Rietveld 408576698