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

Issue 2039093002: Pass bound values as const values to the bound function (Closed)

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

Description

Pass bound values in base::Bind as const values This CL replace a static_assert() in base::Bind with "const" qualifier check to make base::Bind simpler. base::Bind has static_assert()s to prevent the target function from modifying the bound variable directly. But, it uses complex templates and is hard to read. The same check can be done by passing the values as const ones. BUG=554299 Committed: https://crrev.com/9921447d7642c8c0532e926076782facbc62bcb5 Cr-Commit-Position: refs/heads/master@{#402059}

Patch Set 1 #

Patch Set 2 : +bind_internal_win.h #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -28 lines) Patch
M base/bind.h View 1 chunk +0 lines, -18 lines 0 comments Download
M base/bind_helpers.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M base/bind_internal.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M base/bind_internal_win.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M base/bind_unittest.nc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (10 generated)
tzik
PTAL
4 years, 6 months ago (2016-06-06 14:44:15 UTC) #5
tzik
yutak: Could you take a look?
4 years, 6 months ago (2016-06-24 02:09:33 UTC) #7
Yuta Kitamura
LGTM, this looks okay.
4 years, 6 months ago (2016-06-24 06:41:39 UTC) #8
danakj
LGTM also
4 years, 6 months ago (2016-06-24 18:44:55 UTC) #10
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/2039093002/40001
4 years, 6 months ago (2016-06-25 08:02:57 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-25 09:59:52 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-25 10:01:26 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9921447d7642c8c0532e926076782facbc62bcb5
Cr-Commit-Position: refs/heads/master@{#402059}

Powered by Google App Engine
This is Rietveld 408576698