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

Issue 1372113003: Add a PRESUBMIT check for broken .ico files. (Closed)

Created:
5 years, 2 months ago by Matt Giuca
Modified:
4 years, 1 month ago
Reviewers:
oshima, scottmg
CC:
chromium-reviews, oshima+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@optimize-ico-files-modularize
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a PRESUBMIT check for broken .ico files. This is in reaction to crbug.com/526622, where the Chrome .ico files had a bad mask, making them render incorrectly on Windows. The presubmit now checks that icons have a properly formed mask, as well as that the large image is a compressed PNG (not an uncompressed BMP). Also adds a --lint argument to the optimize-ico-files script that manually runs the same checks on a given .ico file. BUG=534679 Committed: https://crrev.com/e56b0cf9ec1e78b04c254405643c7a74380be168 Cr-Commit-Position: refs/heads/master@{#430777}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 2

Patch Set 3 : Update copyright year. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -11 lines) Patch
M chrome/app/theme/PRESUBMIT.py View 1 chunk +3 lines, -1 line 0 comments Download
M tools/resources/ico_tools.py View 1 5 chunks +116 lines, -10 lines 0 comments Download
M tools/resources/optimize-ico-files.py View 3 chunks +14 lines, -0 lines 0 comments Download
A ui/resources/resource_check/ico_files.py View 1 2 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Matt Giuca
As with the previous CL, I wrote this a year ago and I don't know ...
4 years, 1 month ago (2016-11-07 06:35:17 UTC) #5
scottmg
lgtm
4 years, 1 month ago (2016-11-07 18:36:53 UTC) #6
oshima
lgtm https://codereview.chromium.org/1372113003/diff/80001/ui/resources/resource_check/ico_files.py File ui/resources/resource_check/ico_files.py (right): https://codereview.chromium.org/1372113003/diff/80001/ui/resources/resource_check/ico_files.py#newcode1 ui/resources/resource_check/ico_files.py:1: # Copyright 2015 The Chromium Authors. All rights ...
4 years, 1 month ago (2016-11-08 17:48:16 UTC) #7
Matt Giuca
https://codereview.chromium.org/1372113003/diff/80001/ui/resources/resource_check/ico_files.py File ui/resources/resource_check/ico_files.py (right): https://codereview.chromium.org/1372113003/diff/80001/ui/resources/resource_check/ico_files.py#newcode1 ui/resources/resource_check/ico_files.py:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 1 month ago (2016-11-08 23:15:56 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/1372113003/100001
4 years, 1 month ago (2016-11-08 23:17:09 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 1 month ago (2016-11-09 00:04:15 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 00:08:20 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e56b0cf9ec1e78b04c254405643c7a74380be168
Cr-Commit-Position: refs/heads/master@{#430777}

Powered by Google App Engine
This is Rietveld 408576698