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

Issue 2639883006: Fix unused lambda captures in //device and //services/media_capture. (Closed)

Created:
3 years, 11 months ago by krasin1
Modified:
3 years, 11 months ago
CC:
shalamov, chfremer+watch_chromium.org, chromium-reviews, mcasas+watch+vc_chromium.org, Mikhail, posciak+watch_chromium.org, wanming.lin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix unused lambda captures in //device and //services/media_capture. 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 //device and //services/media_capture. 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. This is a second attempt to submit this CL. Previous one was reverted because of (now fixed) Windows issues. The original review url: https://codereview.chromium.org/2649443002/ BUG=681136 Review-Url: https://codereview.chromium.org/2639883006 Cr-Commit-Position: refs/heads/master@{#445418} Committed: https://chromium.googlesource.com/chromium/src/+/2f1771ac371b74ddfff193a764dfea08b4a86314

Patch Set 1 #

Patch Set 2 : constexpr -> static const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M services/video_capture/test/fake_device_unittest.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
krasin1
Hi Ken, I have fixed the Windows-related issue with the CL that caused a revert ...
3 years, 11 months ago (2017-01-20 16:28:36 UTC) #6
Ken Rockot(use gerrit already)
LGTM as-is
3 years, 11 months ago (2017-01-20 21:14:12 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/2639883006/20001
3 years, 11 months ago (2017-01-23 18:24:09 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 18:39:41 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2f1771ac371b74ddfff193a764df...

Powered by Google App Engine
This is Rietveld 408576698