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

Issue 2257003002: [Extensions] Generate all schema resources (Closed)

Created:
4 years, 4 months ago by Devlin
Modified:
4 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Generate all schema resources Some schema resources weren't being generated (presumably because resource generation was previously linked to function registration). However, generated schema resources are a lot better, because they strip out comments and whitespace, making parsing them into JSON significantly faster. Generate all schema resources, and remove the grit files containing the JSON. Note: because inline enums are disallowed (see crbug.com/472279), some schemas had to be updated. Since they weren't previously compiled, this wasn't caught. This also eliminates a 100k resource file (extensions_api_resources.pak). BUG=638758 Committed: https://crrev.com/2d823a6736d032aa3215d1ee0994031bb0245e5b Cr-Commit-Position: refs/heads/master@{#413200}

Patch Set 1 : Ready #

Total comments: 4

Patch Set 2 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -116 lines) Patch
M build/json_schema_api.gni View 1 3 chunks +12 lines, -1 line 0 comments Download
M chrome/BUILD.gn View 2 chunks +1 line, -9 lines 0 comments Download
M chrome/chrome_repack_resources.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_resources.gyp View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/common/BUILD.gn View 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/common/extensions/api/app.json View 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/common/extensions/api/declarative_content.json View 5 chunks +24 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/proxy.json View 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/schemas.gni View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/tts.json View 3 chunks +15 lines, -8 lines 0 comments Download
M chrome/common/extensions/api/tts_engine.json View 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/types_private.json View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 2 chunks +0 lines, -22 lines 0 comments Download
D chrome/common/extensions_api_resources.grd View 1 chunk +0 lines, -28 lines 0 comments Download
M tools/gritsettings/resource_ids View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 46 (37 generated)
Devlin
Istiaque, mind taking a look? Lei, can you look at the non-extensions files? https://codereview.chromium.org/2257003002/diff/100001/chrome/common/extensions/chrome_extensions_client.cc File ...
4 years, 4 months ago (2016-08-18 22:21:27 UTC) #30
Lei Zhang
lgtm ! https://codereview.chromium.org/2257003002/diff/100001/tools/gritsettings/resource_ids File tools/gritsettings/resource_ids (left): https://codereview.chromium.org/2257003002/diff/100001/tools/gritsettings/resource_ids#oldcode225 tools/gritsettings/resource_ids:225: "chrome/common/extensions_api_resources.grd": { Thank you for freeing up ...
4 years, 4 months ago (2016-08-18 22:36:01 UTC) #31
Devlin
+also dpranke for //build/.
4 years, 4 months ago (2016-08-18 23:32:50 UTC) #33
Dirk Pranke
lgtm
4 years, 4 months ago (2016-08-18 23:40:16 UTC) #34
lazyboy
extensions stuff lgtm. https://codereview.chromium.org/2257003002/diff/100001/build/json_schema_api.gni File build/json_schema_api.gni (right): https://codereview.chromium.org/2257003002/diff/100001/build/json_schema_api.gni#newcode142 build/json_schema_api.gni:142: uncompiled_bundle_schema_sources = [] Do you need ...
4 years, 4 months ago (2016-08-19 02:03:30 UTC) #35
Devlin
https://codereview.chromium.org/2257003002/diff/100001/build/json_schema_api.gni File build/json_schema_api.gni (right): https://codereview.chromium.org/2257003002/diff/100001/build/json_schema_api.gni#newcode142 build/json_schema_api.gni:142: uncompiled_bundle_schema_sources = [] On 2016/08/19 02:03:30, lazyboy wrote: > ...
4 years, 4 months ago (2016-08-19 17:55:30 UTC) #38
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/2257003002/120001
4 years, 4 months ago (2016-08-19 17:55:49 UTC) #42
commit-bot: I haz the power
Committed patchset #2 (id:120001)
4 years, 4 months ago (2016-08-19 18:59:36 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 19:04:46 UTC) #46
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2d823a6736d032aa3215d1ee0994031bb0245e5b
Cr-Commit-Position: refs/heads/master@{#413200}

Powered by Google App Engine
This is Rietveld 408576698