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

Issue 1512833002: Remove unbound base::Bind overload (Closed)

Created:
5 years ago by tzik
Modified:
5 years ago
Reviewers:
danakj, dcheng
CC:
chromium-reviews, danakj, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unbound base::Bind overload This CL removes a base::Bind overload without bound arguments. The difference to generic base::Bind is the type check for the bound Runnable: the generic one ensures any argument of the Runnable is not non-const reference, OTHT, the overload being removed checks nothing. Where, comments and tests asserts any *bound* argument should not be non-const reference, so the generic one has been checked excessively. This CL loosen the type check to match the requirement, and then the overloaded base::Bind is no longer needed. BUG= Committed: https://crrev.com/7fe3a687ae2cd98c85e4556441b94e2268704e71 Cr-Commit-Position: refs/heads/master@{#365988}

Patch Set 1 #

Patch Set 2 : split out TypeList utilities to separate CLs #

Patch Set 3 : merge back #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : +test #

Patch Set 7 : fix #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -35 lines) Patch
M base/bind.h View 1 2 3 4 2 chunks +5 lines, -17 lines 4 comments Download
M base/bind_helpers.h View 1 2 3 2 chunks +39 lines, -0 lines 0 comments Download
M base/bind_internal.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M base/bind_unittest.cc View 1 2 3 4 5 6 4 chunks +17 lines, -13 lines 3 comments Download

Messages

Total messages: 34 (14 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/1512833002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512833002/1
5 years ago (2015-12-09 07:42:59 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-09 09:45:37 UTC) #4
tzik
PTAL
5 years ago (2015-12-09 14:39:13 UTC) #6
dcheng
Can we split TakeTypeListItem and ExtractArgs into a separate CL? I think it's OK to ...
5 years ago (2015-12-09 23:49:30 UTC) #7
tzik
On 2015/12/09 23:49:30, dcheng wrote: > Can we split TakeTypeListItem and ExtractArgs into a separate ...
5 years ago (2015-12-14 03:42:40 UTC) #9
dcheng
https://codereview.chromium.org/1512833002/diff/40001/base/bind_helpers.h File base/bind_helpers.h (right): https://codereview.chromium.org/1512833002/diff/40001/base/bind_helpers.h#newcode541 base/bind_helpers.h:541: typedef TypeList<Accum...> Type; Let's do using Type = TypeList<Accum...>; ...
5 years ago (2015-12-14 19:26:46 UTC) #10
tzik
https://codereview.chromium.org/1512833002/diff/40001/base/bind_helpers.h File base/bind_helpers.h (right): https://codereview.chromium.org/1512833002/diff/40001/base/bind_helpers.h#newcode541 base/bind_helpers.h:541: typedef TypeList<Accum...> Type; On 2015/12/14 19:26:46, dcheng wrote: > ...
5 years ago (2015-12-15 05:55:10 UTC) #11
dcheng
https://codereview.chromium.org/1512833002/diff/80001/base/bind.h File base/bind.h (right): https://codereview.chromium.org/1512833002/diff/80001/base/bind.h#newcode69 base/bind.h:69: internal::ExtractArgs<BoundRunType>>; OK, I understand why this is necessary now. ...
5 years ago (2015-12-15 19:42:54 UTC) #12
tzik
https://codereview.chromium.org/1512833002/diff/80001/base/bind.h File base/bind.h (right): https://codereview.chromium.org/1512833002/diff/80001/base/bind.h#newcode69 base/bind.h:69: internal::ExtractArgs<BoundRunType>>; On 2015/12/15 19:42:54, dcheng wrote: > OK, I ...
5 years ago (2015-12-16 08:02: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/1512833002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512833002/100001
5 years ago (2015-12-16 08:03:02 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/154628)
5 years ago (2015-12-16 08:18:45 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512833002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512833002/120001
5 years ago (2015-12-16 13:25:16 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-16 14:47:53 UTC) #21
danakj
LGTM! https://codereview.chromium.org/1512833002/diff/120001/base/bind.h File base/bind.h (right): https://codereview.chromium.org/1512833002/diff/120001/base/bind.h#newcode63 base/bind.h:63: // checks should below for bound references need ...
5 years ago (2015-12-16 20:00:41 UTC) #25
danakj
https://codereview.chromium.org/1512833002/diff/120001/base/bind.h File base/bind.h (right): https://codereview.chromium.org/1512833002/diff/120001/base/bind.h#newcode65 base/bind.h:65: typedef typename RunnableType::RunType BoundRunType; nit: maybe consider writing these ...
5 years ago (2015-12-16 20:01:42 UTC) #26
tzik
https://codereview.chromium.org/1512833002/diff/120001/base/bind.h File base/bind.h (right): https://codereview.chromium.org/1512833002/diff/120001/base/bind.h#newcode63 base/bind.h:63: // checks should below for bound references need to ...
5 years ago (2015-12-17 01:42:36 UTC) #27
danakj
https://codereview.chromium.org/1512833002/diff/120001/base/bind_unittest.cc File base/bind_unittest.cc (right): https://codereview.chromium.org/1512833002/diff/120001/base/bind_unittest.cc#newcode166 base/bind_unittest.cc:166: struct VoidPolymorphic { On 2015/12/17 01:42:36, tzik wrote: > ...
5 years ago (2015-12-18 00:08:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1512833002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1512833002/120001
5 years ago (2015-12-18 00:12:26 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-12-18 02:23:33 UTC) #32
commit-bot: I haz the power
5 years ago (2015-12-18 02:25:20 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7fe3a687ae2cd98c85e4556441b94e2268704e71
Cr-Commit-Position: refs/heads/master@{#365988}

Powered by Google App Engine
This is Rietveld 408576698