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

Issue 1701013003: CrossThreadCopier: Consider arithmetic and enum types as safe. (Closed)

Created:
4 years, 10 months ago by Yuta Kitamura
Modified:
4 years, 10 months ago
Reviewers:
haraken, hiroshige, tzik
CC:
chromium-reviews, blink-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CrossThreadCopier: Consider arithmetic and enum types as safe. The original code assumed that types convertible to int were safe to copy cross-thread. However, this condition is too narrow; any arithmetic types (integers and floats) and enum types are actually safe. This is fixed by this patch. Additionally, this patch rearranges the order of CrossThreadCopierBase's template parameters, because putting T in the last looks unusual. Also, the specializations of CrossThreadCopierBase are updated so that the readers can understand the specializations cover all the possible combinations of template parameters (except for <T, false, false, false>, which is intentionally undefined in the header). BUG=565765 R=haraken@chromium.org, hiroshige@chromium.org, tzik@chromium.org Committed: https://crrev.com/e17b74910a29f7db108c177670a9c0f15556ed33 Cr-Commit-Position: refs/heads/master@{#376129}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -12 lines) Patch
M third_party/WebKit/Source/platform/CrossThreadCopier.h View 3 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/CrossThreadCopier.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (6 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/1701013003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701013003/1
4 years, 10 months ago (2016-02-17 07:14:21 UTC) #3
Yuta Kitamura
PTAL
4 years, 10 months ago (2016-02-17 07:15:07 UTC) #4
tzik
lgtm
4 years, 10 months ago (2016-02-17 07:57:23 UTC) #5
haraken
LGTM
4 years, 10 months ago (2016-02-17 08:04:24 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 08:30:36 UTC) #8
hiroshige
lgtm.
4 years, 10 months ago (2016-02-17 13:55:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701013003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701013003/1
4 years, 10 months ago (2016-02-18 07:36:32 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-18 09:43:46 UTC) #13
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 09:45:22 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e17b74910a29f7db108c177670a9c0f15556ed33
Cr-Commit-Position: refs/heads/master@{#376129}

Powered by Google App Engine
This is Rietveld 408576698