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

Issue 2165023003: [Extensions] Use compiled feature files (Closed)

Created:
4 years, 5 months ago by Devlin
Modified:
4 years, 4 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, 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] Use compiled feature files Use generated compiled feature files instead of parsing the JSON at runtime. In local testing, this shows an order-of-magnitude performance increase, as well as catching a number of invalid features. BUG=280286 Committed: https://crrev.com/5c684983bc51d5a377fcc34dcdaa9363e9a9d7d3 Cr-Commit-Position: refs/heads/master@{#407511}

Patch Set 1 : Gyp/Gn fixes #

Patch Set 2 : Test fixes #

Total comments: 2

Patch Set 3 : Update copyright year #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+544 lines, -155 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_resources.grd View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/BUILD.gn View 3 chunks +48 lines, -1 line 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 chunks +7 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gni View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 1 3 chunks +12 lines, -28 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc View 1 1 chunk +16 lines, -15 lines 0 comments Download
M extensions/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/extensions_client.h View 1 1 chunk +4 lines, -6 lines 0 comments Download
M extensions/common/features/simple_feature.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions_resources.grd View 1 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/renderer/test_features_native_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/common/api/BUILD.gn View 3 chunks +45 lines, -0 lines 0 comments Download
M extensions/shell/common/api/api.gyp View 1 chunk +80 lines, -0 lines 0 comments Download
M extensions/shell/common/api/schemas.gni View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 1 3 chunks +12 lines, -26 lines 0 comments Download
A extensions/test/BUILD.gn View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A extensions/test/test_api.gyp View 1 chunk +87 lines, -0 lines 0 comments Download
M extensions/test/test_extensions_client.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/test/test_extensions_client.cc View 1 3 chunks +11 lines, -25 lines 0 comments Download
M tools/json_schema_compiler/feature_compiler.py View 1 5 chunks +36 lines, -12 lines 0 comments Download
M tools/json_schema_compiler/test/BUILD.gn View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/test/features_generation_unittest.cc View 1 5 chunks +16 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/test/features_test.json View 1 2 chunks +11 lines, -1 line 0 comments Download
M tools/json_schema_compiler/test/json_schema_compiler_tests.gyp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (37 generated)
Devlin
Woo! Antony, mind taking a look? Dirk, can you scan through the gyp/gn files and ...
4 years, 5 months ago (2016-07-22 20:15:17 UTC) #25
Dirk Pranke
lgtm w/ suggestion (feel free to ignore). https://codereview.chromium.org/2165023003/diff/130001/extensions/test/BUILD.gn File extensions/test/BUILD.gn (right): https://codereview.chromium.org/2165023003/diff/130001/extensions/test/BUILD.gn#newcode1 extensions/test/BUILD.gn:1: # Copyright ...
4 years, 5 months ago (2016-07-22 21:44:18 UTC) #26
asargent_no_longer_on_chrome
lgtm
4 years, 5 months ago (2016-07-22 23:58:06 UTC) #27
Devlin
https://codereview.chromium.org/2165023003/diff/130001/extensions/test/BUILD.gn File extensions/test/BUILD.gn (right): https://codereview.chromium.org/2165023003/diff/130001/extensions/test/BUILD.gn#newcode1 extensions/test/BUILD.gn:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 5 months ago (2016-07-25 06:39:48 UTC) #32
Devlin
+jochen for top-level stamp. asargent@ reviewed extensions and json_schema_compiler and dpranke reviewed structure of gyp/gn, ...
4 years, 5 months ago (2016-07-25 06:40:42 UTC) #34
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-07-25 15:52:55 UTC) #35
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/2165023003/170001
4 years, 4 months ago (2016-07-25 18:00:03 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:170001)
4 years, 4 months ago (2016-07-25 18:05:05 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-07-25 18:06:52 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5c684983bc51d5a377fcc34dcdaa9363e9a9d7d3
Cr-Commit-Position: refs/heads/master@{#407511}

Powered by Google App Engine
This is Rietveld 408576698