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

Issue 1644603003: Do Perfect Forwarding from base::Bind to BindState storage (Closed)

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

Description

Do Perfect Forwarding from base::Bind to BindState storage Replace StorageType usage with std::decay and do Perfect Forwarding from base::Bind to BindState storage as a preparation to store a move-only type into BindState. The difference of StorageType and std::decay is essentially array handling. CallbackParamTraits::StorageType converts "T[n]" to "const T*" OTOH std::decay converts it to "T*". BUG=554299 Committed: https://crrev.com/cdec75e36dd5ec9c5643f7b473e166a3acef81ea Cr-Commit-Position: refs/heads/master@{#372900}

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -35 lines) Patch
M base/bind.h View 1 3 chunks +5 lines, -7 lines 0 comments Download
M base/bind_internal.h View 2 chunks +5 lines, -3 lines 0 comments Download
M base/callback_internal.h View 1 4 chunks +1 line, -25 lines 0 comments Download

Messages

Total messages: 29 (12 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/1644603003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644603003/1
4 years, 10 months ago (2016-01-28 08:33:07 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-28 10:18:25 UTC) #4
tzik
PTAL
4 years, 10 months ago (2016-01-28 12:43:28 UTC) #6
danakj
Can you add some motivation to the CL description about why you want to make ...
4 years, 10 months ago (2016-01-28 23:01:00 UTC) #8
tzik
On 2016/01/28 23:01:00, danakj wrote: > Can you add some motivation to the CL description ...
4 years, 10 months ago (2016-02-01 15:00:09 UTC) #11
tzik
https://codereview.chromium.org/1644603003/diff/1/base/bind.h File base/bind.h (right): https://codereview.chromium.org/1644603003/diff/1/base/bind.h#newcode9 base/bind.h:9: #include "base/callback_internal.h" On 2016/01/28 23:01:00, danakj wrote: > Should ...
4 years, 10 months ago (2016-02-01 15:00:16 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644603003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644603003/20001
4 years, 10 months ago (2016-02-01 15:03:38 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 16:34:41 UTC) #16
danakj
At this point, except for our whitelist, people could bind a scoped_ptr into a Callback, ...
4 years, 10 months ago (2016-02-01 19:44:18 UTC) #17
Nico
lgtm, looks like a nice change :-)
4 years, 10 months ago (2016-02-01 21:04:50 UTC) #19
tzik
On 2016/02/01 19:44:18, danakj wrote: > At this point, except for our whitelist, people could ...
4 years, 10 months ago (2016-02-02 05:56:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644603003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644603003/20001
4 years, 10 months ago (2016-02-02 05:56:37 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-02 06:09:48 UTC) #24
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cdec75e36dd5ec9c5643f7b473e166a3acef81ea Cr-Commit-Position: refs/heads/master@{#372900}
4 years, 10 months ago (2016-02-02 06:10:37 UTC) #26
tzik
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1654973003/ by tzik@chromium.org. ...
4 years, 10 months ago (2016-02-02 06:57:38 UTC) #27
tzik
On 2016/02/02 05:56:04, tzik wrote: > On 2016/02/01 19:44:18, danakj wrote: > > At this ...
4 years, 10 months ago (2016-02-02 12:29:11 UTC) #28
danakj
4 years, 10 months ago (2016-02-02 20:18:46 UTC) #29
Message was sent while issue was closed.
On Tue, Feb 2, 2016 at 4:29 AM, <tzik@chromium.org> wrote:

> On 2016/02/02 05:56:04, tzik wrote:
> > On 2016/02/01 19:44:18, danakj wrote:
> > > At this point, except for our whitelist, people could bind a scoped_ptr
into
> a
> > > Callback, without base::Passed(), I guess? But then the function would
have
> to
> > > take a scoped_ptr const&.
> >
> > We are almost there, but it needs to migrate from std::tuple to
base::Tuple,
> for
> > which I'm going to post a proposal to mailto:cxx@chromium.org.
> >
>
> Ah... std::tuple increases the stripped binary size by 12kB....
>
>
I asked sievers@ about 8kB on android and he said that would be in the
noise. I guess 12 is also..

But then, why is it doing so? Maybe we could do something more
specific/smaller just for this codesite? How much of the API of tuple do we
need?

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698