Reserve more space for startup-critical resource IDs.

When regenerating the startup resource ID list I found it greatly
exceeded 400 items, resulting in ID conflicts. Bump the reservation from
400 to 800 to give sufficient room.

This also fixes a couple bugs in the scripts -- a typo that led to a
crash and a missing inclusion of a new generated .h suffix.

Bug: none
Change-Id: I34624cd0ed29593b8dba764243aea1b3cbce3ed8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4555881
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Robert Flack <flackr@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1148093}
NOKEYCHECK=True
GitOrigin-RevId: da12af818e4458d9ae552b6a2650d82568a2115f
2 files changed
tree: c4a987b6b54d3b26f627e7bf6fc53021da705d8c
  1. grit/
  2. preprocess_tests/
  3. .gitignore
  4. BUILD.gn
  5. grit.py
  6. grit_args.gni
  7. grit_info.py
  8. grit_rule.gni
  9. MANIFEST.in
  10. minify_js.py
  11. minify_js_unittest.py
  12. minimize_css.py
  13. minimize_css_unittest.py
  14. OWNERS
  15. pak_util.py
  16. pak_util_unittest.py
  17. preprocess_if_expr.gni
  18. preprocess_if_expr.py
  19. preprocess_if_expr_test.py
  20. PRESUBMIT.py
  21. README.md
  22. repack.gni
  23. setup.py
  24. stamp_grit_sources.py
README.md

GRIT (Google Resource and Internationalization Tool)

This is a tool for projects to manage resources and simplify the localization workflow.

See the user guide for more details on using this project: https://dev.chromium.org/developers/tools-we-use-in-chromium/grit/grit-users-guide

History

This code previously used to live at https://code.google.com/p/grit-i18n/source/checkout which still contains the project‘s history. https://chromium.googlesource.com/external/grit-i18n/ is a git mirror of the SVN repository that’s identical except for the last two commits. The project is now developed in the Chromium project directly.

There is a read-only mirror of just this directory at https://chromium.googlesource.com/chromium/src/tools/grit/ if you don't want to check out all of Chromium.