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

Issue 504503002: Add a tool to look for source files that have unneeded grit header includes. (Closed)

Created:
6 years, 4 months ago by Lei Zhang
Modified:
6 years, 3 months ago
Reviewers:
tfarina, Nico
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Add a tool to look for source files that have unneeded grit header includes. NOTRY=true Committed: https://crrev.com/5312633de2202a2c1018c9ed56a951e384107db7 Cr-Commit-Position: refs/heads/master@{#291984}

Patch Set 1 #

Total comments: 22

Patch Set 2 : address comments #

Patch Set 3 : look through else tags too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -0 lines) Patch
A tools/unused-grit-header.py View 1 2 1 chunk +201 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Lei Zhang
There are some false positives like content/content_resources.grd vs content/app/resources/content_resources.grd, but I'm trying to fix that ...
6 years, 4 months ago (2014-08-22 23:44:58 UTC) #1
Nico
That's pretty long, compared to the shell 3-liner. I suppose it's more precise though. https://codereview.chromium.org/504503002/diff/1/tools/unused-grit-header.py ...
6 years, 4 months ago (2014-08-24 23:58:26 UTC) #2
Lei Zhang
https://codereview.chromium.org/504503002/diff/1/tools/unused-grit-header.py File tools/unused-grit-header.py (right): https://codereview.chromium.org/504503002/diff/1/tools/unused-grit-header.py#newcode6 tools/unused-grit-header.py:6: """A tool to scan source files for unneeded grit ...
6 years, 3 months ago (2014-08-26 02:35:25 UTC) #3
Nico
https://codereview.chromium.org/504503002/diff/1/tools/unused-grit-header.py File tools/unused-grit-header.py (right): https://codereview.chromium.org/504503002/diff/1/tools/unused-grit-header.py#newcode13 tools/unused-grit-header.py:13: print prog_name, 'GRD_FILE DIRS_TO_SCAN' On 2014/08/26 02:35:24, Lei Zhang ...
6 years, 3 months ago (2014-08-26 02:43:38 UTC) #4
Nico
On Mon, Aug 25, 2014 at 7:43 PM, <thakis@chromium.org> wrote: > > https://codereview.chromium.org/504503002/diff/1/tools/ > unused-grit-header.py ...
6 years, 3 months ago (2014-08-26 02:44:08 UTC) #5
Lei Zhang
On 2014/08/26 02:43:38, Nico (hiding) wrote: > https://codereview.chromium.org/504503002/diff/1/tools/unused-grit-header.py#newcode96 > tools/unused-grit-header.py:96: elif child.tag == 'if': > ...
6 years, 3 months ago (2014-08-26 08:32:57 UTC) #6
Nico
lgtm
6 years, 3 months ago (2014-08-26 21:27:21 UTC) #7
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 3 months ago (2014-08-26 21:28:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/504503002/40001
6 years, 3 months ago (2014-08-26 21:29:52 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (40001) as 2b14a70c710d9e380ea50a963b7860bb8b464bfe
6 years, 3 months ago (2014-08-26 21:31:32 UTC) #10
tfarina
lgtm (rubber-stamp).
6 years, 3 months ago (2014-08-27 16:37:49 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:45:42 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5312633de2202a2c1018c9ed56a951e384107db7
Cr-Commit-Position: refs/heads/master@{#291984}

Powered by Google App Engine
This is Rietveld 408576698