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

Issue 2645613003: Fix unused lambda captures in Blink (Closed)

Created:
3 years, 11 months ago by krasin1
Modified:
3 years, 11 months ago
Reviewers:
esprehn
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, Rik, chromium-reviews, dshwang, haraken, Justin Novosad
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix unused lambda captures in Blink. 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 WebKit/Blink. 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/2645613003 Cr-Commit-Position: refs/heads/master@{#444477} Committed: https://chromium.googlesource.com/chromium/src/+/5cbffe1aa36f518681414e7bed5627a57449b58a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
krasin1
Hi Elliott! please, review this small pack of fixes to the unused lambda captures. We ...
3 years, 11 months ago (2017-01-18 18:46:33 UTC) #4
esprehn
Does capturing |this| have any side effects? Ex. You need to do it to call ...
3 years, 11 months ago (2017-01-18 19:57:52 UTC) #7
krasin1
On 2017/01/18 19:57:52, esprehn wrote: > Does capturing |this| have any side effects? Ex. You ...
3 years, 11 months ago (2017-01-18 20:40:45 UTC) #8
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/2645613003/1
3 years, 11 months ago (2017-01-18 20:41:33 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 21:06:52 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5cbffe1aa36f518681414e7bed56...

Powered by Google App Engine
This is Rietveld 408576698