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

Issue 2115533002: Allow binding captureless lambdas into base::Callback by base::Bind (Closed)

Created:
4 years, 5 months ago by tzik
Modified:
4 years, 5 months ago
CC:
chromium-reviews, Nico, Ken Rockot(use gerrit already)
Base URL:
https://chromium.googlesource.com/chromium/src.git@05_remove_runnable
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow binding captureless lambdas into base::Callback by base::Bind This CL adds FunctorTraits for captureless lambdas, which is used by base::Bind impl, so that base::Base accepts captureless lambda as the target function. Capturing lambdas are still not allowed. Committed: https://crrev.com/c1db726538e5b85efac5994bf5e90320800b894d Cr-Commit-Position: refs/heads/master@{#404334}

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : +nocompile test #

Patch Set 4 : +comment #

Patch Set 5 : fix ! handling #

Patch Set 6 : gcc fix #

Patch Set 7 : +more test case. comment fix #

Patch Set 8 : +comment and link #

Total comments: 4

Patch Set 9 : comment fix. rebase. #

Total comments: 2

Patch Set 10 : s/ExtractLambdaRunType/ExtractCallableRunType/g, s/IsCapturelessLambda/IsConvertibleToRunType/g #

Patch Set 11 : comment fix #

Total comments: 2

Patch Set 12 : comment fix. rebase #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -3 lines) Patch
M base/bind_internal.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +92 lines, -2 lines 0 comments Download
M base/bind_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
M base/bind_unittest.nc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M styleguide/c++/c++11.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (10 generated)
tzik
PTAL
4 years, 5 months ago (2016-07-01 05:21:40 UTC) #3
Yuta Kitamura
Functionality-wise, it looks okay, so (non-owner) LGTM, but the necessity of this patch is a ...
4 years, 5 months ago (2016-07-01 09:02:33 UTC) #4
tzik
https://codereview.chromium.org/2115533002/diff/140001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2115533002/diff/140001/base/bind_internal.h#newcode55 base/bind_internal.h:55: // Unlike to the original version, we need |make_void| ...
4 years, 5 months ago (2016-07-01 09:58:08 UTC) #7
dcheng
https://codereview.chromium.org/2115533002/diff/150001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2115533002/diff/150001/base/bind_internal.h#newcode79 base/bind_internal.h:79: // captureless lambda expression type. Nit: it's a bit ...
4 years, 5 months ago (2016-07-01 13:29:48 UTC) #8
tzik
https://codereview.chromium.org/2115533002/diff/150001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2115533002/diff/150001/base/bind_internal.h#newcode79 base/bind_internal.h:79: // captureless lambda expression type. On 2016/07/01 13:29:47, dcheng ...
4 years, 5 months ago (2016-07-01 14:34:58 UTC) #9
dcheng
LGTM https://codereview.chromium.org/2115533002/diff/190001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2115533002/diff/190001/base/bind_internal.h#newcode139 base/bind_internal.h:139: // to the function type while capturing lambda ...
4 years, 5 months ago (2016-07-04 05:14:02 UTC) #10
tzik
https://codereview.chromium.org/2115533002/diff/190001/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2115533002/diff/190001/base/bind_internal.h#newcode139 base/bind_internal.h:139: // to the function type while capturing lambda can't. ...
4 years, 5 months ago (2016-07-04 08:15:48 UTC) #11
tzik
Dana: Could you take a look to this as an OWNER of //styleguide?
4 years, 5 months ago (2016-07-07 21:15:47 UTC) #12
danakj
On 2016/07/07 21:15:47, tzik wrote: > Dana: Could you take a look to this as ...
4 years, 5 months ago (2016-07-07 21:18:49 UTC) #13
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/2115533002/230001
4 years, 5 months ago (2016-07-08 02:09:43 UTC) #16
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/2115533002/230001
4 years, 5 months ago (2016-07-08 04:10:52 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:230001)
4 years, 5 months ago (2016-07-08 09:42:52 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 09:43:06 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 09:47:04 UTC) #24
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/c1db726538e5b85efac5994bf5e90320800b894d
Cr-Commit-Position: refs/heads/master@{#404334}

Powered by Google App Engine
This is Rietveld 408576698