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

Issue 2375283004: Optionally compute grit inputs precisely. (Closed)

Created:
4 years, 2 months ago by brettw
Modified:
4 years, 2 months ago
Reviewers:
Dirk Pranke, agrieve
CC:
chromium-reviews, wfh+watch_chromium.org, jam, darin-cc_chromium.org, devtools-reviews_chromium.org, tracing+reviews_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Optionally compute grit inputs precisely. Adds a new flag that will cause grit inputs to be computed precisely by calling out to grit at GN-time. This is off by default so it won't impact the performance of the normal runs for developers (where it is not necessary). This can be turned explicitly for bots that use analyze. Updates the closure compiler template so there's not a pass-through group in the dependency chain. That group is not helping and because the deps were not public, the input was not allowed by the generated grit file. Remove the default value for the resource_ids file that grit_info used. The Android build depends on not setting a resource ID for a few files where it's not needed, and referring to the shared produced an error because there was no entry for the files in the ID file. BUG=639328 Committed: https://crrev.com/bd8c219c2282f2d6f238517c16c76b15fdf82f39 Cr-Commit-Position: refs/heads/master@{#422268}

Patch Set 1 #

Patch Set 2 : Comment #

Patch Set 3 : fix #

Patch Set 4 : inputs #

Patch Set 5 : Remove implicit resource ids #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -44 lines) Patch
M .gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tracing/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/google_input_tools/closure.gni View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M tools/grit/grit_info.py View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M tools/grit/grit_rule.gni View 1 2 3 4 8 chunks +80 lines, -35 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
brettw
Comment
4 years, 2 months ago (2016-09-29 21:31:15 UTC) #1
brettw
fix
4 years, 2 months ago (2016-09-29 21:35:57 UTC) #2
brettw
inputs
4 years, 2 months ago (2016-09-29 22:44:03 UTC) #9
brettw
Note that the flag doesn't work on Android. Android sets the resource_ids file to empty ...
4 years, 2 months ago (2016-09-29 22:44:51 UTC) #10
Dirk Pranke
+agrieve This more-or-less lgtm, but I don't understand enough about grit to understand why Android ...
4 years, 2 months ago (2016-09-30 16:32:00 UTC) #16
agrieve
On 2016/09/30 16:32:00, Dirk Pranke wrote: > +agrieve > > This more-or-less lgtm, but I ...
4 years, 2 months ago (2016-09-30 17:52:35 UTC) #17
brettw
Remove implicit resource ids
4 years, 2 months ago (2016-09-30 22:21:58 UTC) #18
brettw
I figured out Android. grit_info.py had a default value for the resource IDs that wasn't ...
4 years, 2 months ago (2016-09-30 22:22:06 UTC) #19
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/2375283004/80001
4 years, 2 months ago (2016-09-30 22:22:50 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-01 01:56:54 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-01 02:01:23 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bd8c219c2282f2d6f238517c16c76b15fdf82f39
Cr-Commit-Position: refs/heads/master@{#422268}

Powered by Google App Engine
This is Rietveld 408576698