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

Issue 699283002: c++11: Allow lambdas, with some restrictions. (Closed)

Created:
6 years, 1 month ago by Nico
Modified:
6 years, 1 month ago
Reviewers:
jamesr, Peter Kasting
CC:
chromium-reviews, dmichael (off chromium), dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

c++11: Allow lambdas, with some restrictions. Thanks to David Michael <dmichael@chromium.org>; for condensing the discussion thread to a recommendation! BUG=none Committed: https://crrev.com/a907c318b52d7b66d2a66837bdfa6faf9e1058a3 Cr-Commit-Position: refs/heads/master@{#302708}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -28 lines) Patch
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 chunks +8 lines, -15 lines 0 comments Download
M styleguide/c++/c++11.html View 1 2 2 chunks +17 lines, -8 lines 0 comments Download
M ui/base/layout.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Nico
6 years, 1 month ago (2014-11-04 20:56:54 UTC) #2
jamesr
Can we get an example use in the patch as well?
6 years, 1 month ago (2014-11-04 21:06:29 UTC) #3
jamesr
https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html File styleguide/c++/c++11.html (right): https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html#newcode123 styleguide/c++/c++11.html:123: <td>Only use lambdas in cases where they will run ...
6 years, 1 month ago (2014-11-04 21:08:49 UTC) #4
Nico
On 2014/11/04 21:06:29, jamesr wrote: > Can we get an example use in the patch ...
6 years, 1 month ago (2014-11-04 21:10:13 UTC) #5
Peter Kasting
https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html File styleguide/c++/c++11.html (right): https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html#newcode123 styleguide/c++/c++11.html:123: <td>Only use lambdas in cases where they will run ...
6 years, 1 month ago (2014-11-04 21:10:36 UTC) #7
Nico
https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html File styleguide/c++/c++11.html (right): https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html#newcode123 styleguide/c++/c++11.html:123: <td>Only use lambdas in cases where they will run ...
6 years, 1 month ago (2014-11-04 21:12:49 UTC) #8
jamesr
That's better, although storing on the stack should be fine e.g. auto my_lambda = ....; ...
6 years, 1 month ago (2014-11-04 21:14:18 UTC) #9
Peter Kasting
On 2014/11/04 21:12:49, Nico wrote: > https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html > File styleguide/c++/c++11.html (right): > > https://codereview.chromium.org/699283002/diff/20001/styleguide/c++/c++11.html#newcode123 > ...
6 years, 1 month ago (2014-11-04 21:15:37 UTC) #10
Nico
Added a few uses (clang-format understands lambdas, but in 2 of the 3 uses it ...
6 years, 1 month ago (2014-11-04 21:31:08 UTC) #11
jamesr
lgtm
6 years, 1 month ago (2014-11-04 22:42:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699283002/40001
6 years, 1 month ago (2014-11-04 22:52:44 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-04 23:38:17 UTC) #17
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 23:39:16 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a907c318b52d7b66d2a66837bdfa6faf9e1058a3
Cr-Commit-Position: refs/heads/master@{#302708}

Powered by Google App Engine
This is Rietveld 408576698