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

Issue 2659523002: Generate better catalog C++ sources (Closed)

Created:
3 years, 11 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate better catalog C++ sources Rather than dumping a simple string literal, which has unacceptable limitations due to arbitrary string literal length constraints in compilers, we instead parse the JSON at build time and emit a C++ function which returns a fixed base::Value representation of that JSON. BUG=685359 R=ben@chromium.org Review-Url: https://codereview.chromium.org/2659523002 Cr-Commit-Position: refs/heads/master@{#446404} Committed: https://chromium.googlesource.com/chromium/src/+/72cb24d232fb79d878f8c0ab16b736e207d9c355

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -67 lines) Patch
M chrome/app/mash/BUILD.gn View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/app/mash/mash_runner.cc View 4 chunks +2 lines, -9 lines 0 comments Download
M services/catalog/public/tools/catalog.gni View 3 chunks +14 lines, -6 lines 0 comments Download
A services/catalog/public/tools/catalog.cc.tmpl View 1 chunk +58 lines, -0 lines 0 comments Download
A services/catalog/public/tools/catalog.h.tmpl View 1 chunk +29 lines, -0 lines 0 comments Download
M services/catalog/public/tools/sourcify_manifest.py View 1 chunk +88 lines, -35 lines 0 comments Download
M services/service_manager/public/cpp/test/run_all_service_tests_with_catalog.cc View 2 chunks +2 lines, -8 lines 0 comments Download
M services/service_manager/public/cpp/test/service_test_catalog.h View 1 chunk +16 lines, -5 lines 0 comments Download
M services/service_manager/public/tools/test/service_test.gni View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 9 (4 generated)
Ken Rockot(use gerrit already)
3 years, 11 months ago (2017-01-26 01:49:38 UTC) #2
Ben Goodger (Google)
I mean at a certain point we may as well emit a catalog::Entry... but sure ...
3 years, 11 months ago (2017-01-26 05:17:33 UTC) #3
Ken Rockot(use gerrit already)
Right, I started going down the path of defining real types for these things, but ...
3 years, 11 months ago (2017-01-26 05:34:10 UTC) #4
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/2659523002/1
3 years, 11 months ago (2017-01-26 18:29:16 UTC) #6
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 19:48:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/72cb24d232fb79d878f8c0ab16b7...

Powered by Google App Engine
This is Rietveld 408576698