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

Issue 2106773002: Remove `Runnable` concept from base/bind_internal.h (Closed)

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

Description

Remove `Runnable` concept from base/bind_internal.h `Runnable` concept was useful when bind_internal.h was a huge generated file. However, it's an unneeded layer these days. This CL removes `Runnable` from bind_internal.h to simplify its impl. After this CL, BindState holds the bound Functor directly in its internal storage. This CL contains: * Merge bind_internal_win.h into bind_internal.h * Move typechecks in Bind() into MakeBindStateType. * Remove no longer used HasIsMethodTag in bind_helper.h. * Remove InvokeHelper specialization for IgnoreResult. * Merge assertion-only InvokeHelper specialization into another specialization. * Factor out the type setup in BindState into MakeBindStateType. BUG=554299 Committed: https://crrev.com/99de02ba952b0a69291f81c5b8ca14d81cc1f74f Cr-Commit-Position: refs/heads/master@{#403413}

Patch Set 1 #

Patch Set 2 : split #

Patch Set 3 : reupload #

Patch Set 4 : update #

Patch Set 5 : remove more unused stuff #

Patch Set 6 : split some removal part to another CL #

Patch Set 7 : rebase #

Patch Set 8 : rebase onto clang crash workaround #

Total comments: 8

Patch Set 9 : +comment. fix spacing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -461 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M base/base.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M base/bind.h View 1 chunk +6 lines, -42 lines 0 comments Download
M base/bind_helpers.h View 1 2 3 4 5 6 2 chunks +1 line, -80 lines 0 comments Download
M base/bind_internal.h View 1 2 3 4 5 6 7 8 8 chunks +183 lines, -262 lines 0 comments Download
D base/bind_internal_win.h View 1 chunk +0 lines, -73 lines 0 comments Download
M base/bind_unittest.nc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M base/callback_internal.h View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (10 generated)
tzik
PTAL
4 years, 5 months ago (2016-06-29 13:23:03 UTC) #7
tzik
On 2016/06/29 13:23:03, tzik wrote: > PTAL win-clang failure seems a clang-cl bug. I filed ...
4 years, 5 months ago (2016-06-29 16:08:01 UTC) #8
Yuta Kitamura
Looked throughly and seemed a nice refactoring. LGTM, but I'd expect another review from someone ...
4 years, 5 months ago (2016-06-30 07:13:29 UTC) #9
dcheng
Looks good overall. Just one small question and one nit https://codereview.chromium.org/2106773002/diff/140001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2106773002/diff/140001/base/bind_internal.h#newcode131 ...
4 years, 5 months ago (2016-06-30 12:53:37 UTC) #10
tzik
https://codereview.chromium.org/2106773002/diff/140001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2106773002/diff/140001/base/bind_internal.h#newcode32 base/bind_internal.h:32: // a Run() function. Usually just a convenience typedef. ...
4 years, 5 months ago (2016-07-01 04:11:00 UTC) #11
dcheng
lgtm
4 years, 5 months ago (2016-07-01 04:20:40 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/2106773002/160001
4 years, 5 months ago (2016-07-01 05:23:03 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-01 05:54:28 UTC) #17
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/99de02ba952b0a69291f81c5b8ca14d81cc1f74f Cr-Commit-Position: refs/heads/master@{#403413}
4 years, 5 months ago (2016-07-01 05:56:44 UTC) #19
pdknsk
4 years ago (2016-12-09 23:20:56 UTC) #20
Message was sent while issue was closed.
This has likely introduced a bug, or revealed a compiler bug, with non-default
build options.

https://bugs.chromium.org/p/chromium/issues/detail?id=671140#c8

Powered by Google App Engine
This is Rietveld 408576698