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

Issue 2646863002: Fix unused lambda captures in //chrome, //services/ui and //ui. (Closed)

Created:
3 years, 11 months ago by krasin1
Modified:
3 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, media-router+watch_chromium.org, viettrungluu+watch_chromium.org, Peter Beverloo, chfremer+watch_chromium.org, mlamouri+watch-notifications_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, mcasas+watch+vc_chromium.org, chromium-apps-reviews_chromium.org, darin (slow to review), awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix unused lambda captures in //chrome, //services/ui and //ui. Clang just got a new warning about unused lambda captures, and that requires us to clean all places with this issue across all the Chromium code base. This CL fixes all such cases in //chrome, //services/ui and //ui. An example of a code that is no longer considered normal is auto g = [i, j]() { printf("%d\n", i); }; in which j is never used in the lambda and therefore its capture is unnecessary. BUG=681136 Review-Url: https://codereview.chromium.org/2646863002 Cr-Commit-Position: refs/heads/master@{#445062} Committed: https://chromium.googlesource.com/chromium/src/+/ea33b332c6d28c050b657baada979a22ae5ad3a6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M chrome/browser/extensions/api/gcd_private/privet_v3_session_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/ui/ws/user_display_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/views/message_popup_collection_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
krasin1
Hi Scott, this is another trivial cleanup CL. In this case, I am lifting the ...
3 years, 11 months ago (2017-01-19 22:27:18 UTC) #4
sky
LGTM
3 years, 11 months ago (2017-01-20 00:42:31 UTC) #7
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/2646863002/1
3 years, 11 months ago (2017-01-20 15:36:50 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 15:41:09 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/ea33b332c6d28c050b657baada97...

Powered by Google App Engine
This is Rietveld 408576698