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

Issue 2193693003: Further reduction of feature_compiler.py generated code (Closed)

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

Description

Further reduction of feature_compiler.py generated code Use raw pointers instead of unique pointers to reduce size. See linked bug for size details. BUG=631416 Committed: https://crrev.com/2026cea7fa1b2146d7113dc31f2a2969d9ec58e3 Cr-Commit-Position: refs/heads/master@{#408788}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : tests #

Total comments: 4

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -41 lines) Patch
M extensions/common/features/base_feature_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/features/base_feature_provider.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/features/complex_feature.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/common/features/complex_feature.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/common/features/complex_feature_unittest.cc View 1 2 3 4 6 chunks +8 lines, -12 lines 0 comments Download
M extensions/common/features/json_feature_provider.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M extensions/common/features/simple_feature_unittest.cc View 1 2 3 4 2 chunks +8 lines, -10 lines 0 comments Download
M tools/json_schema_compiler/feature_compiler.py View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
scottmg
4 years, 4 months ago (2016-07-29 18:28:22 UTC) #2
Devlin
https://codereview.chromium.org/2193693003/diff/20001/extensions/common/features/complex_feature.cc File extensions/common/features/complex_feature.cc (right): https://codereview.chromium.org/2193693003/diff/20001/extensions/common/features/complex_feature.cc#newcode33 extensions/common/features/complex_feature.cc:33: STLDeleteElements(&features_); This makes me a bit sad. Since we ...
4 years, 4 months ago (2016-07-29 18:50:15 UTC) #10
scottmg
https://codereview.chromium.org/2193693003/diff/20001/extensions/common/features/complex_feature.cc File extensions/common/features/complex_feature.cc (right): https://codereview.chromium.org/2193693003/diff/20001/extensions/common/features/complex_feature.cc#newcode33 extensions/common/features/complex_feature.cc:33: STLDeleteElements(&features_); On 2016/07/29 18:50:14, Devlin wrote: > This makes ...
4 years, 4 months ago (2016-07-29 20:05:04 UTC) #11
Devlin
This looks okay, so if these other suggestions don't pan out, this is probably fine. ...
4 years, 4 months ago (2016-07-29 20:13:49 UTC) #12
scottmg
https://codereview.chromium.org/2193693003/diff/40001/extensions/common/features/complex_feature.cc File extensions/common/features/complex_feature.cc (right): https://codereview.chromium.org/2193693003/diff/40001/extensions/common/features/complex_feature.cc#newcode12 extensions/common/features/complex_feature.cc:12: features_.push_back(std::unique_ptr<Feature>(f)); On 2016/07/29 20:13:49, Devlin wrote: > What if ...
4 years, 4 months ago (2016-07-29 20:24:53 UTC) #13
Devlin
lgtm with some completely optional nits. https://codereview.chromium.org/2193693003/diff/40001/extensions/common/features/complex_feature.cc File extensions/common/features/complex_feature.cc (right): https://codereview.chromium.org/2193693003/diff/40001/extensions/common/features/complex_feature.cc#newcode12 extensions/common/features/complex_feature.cc:12: features_.push_back(std::unique_ptr<Feature>(f)); On 2016/07/29 ...
4 years, 4 months ago (2016-07-29 21:15:02 UTC) #16
scottmg
https://codereview.chromium.org/2193693003/diff/60001/extensions/common/features/complex_feature.h File extensions/common/features/complex_feature.h (right): https://codereview.chromium.org/2193693003/diff/60001/extensions/common/features/complex_feature.h#newcode27 extensions/common/features/complex_feature.h:27: explicit ComplexFeature(const std::vector<Feature*>& features); On 2016/07/29 21:15:02, Devlin wrote: ...
4 years, 4 months ago (2016-07-29 21:28:45 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/2193693003/80001
4 years, 4 months ago (2016-07-29 21:29:35 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-29 22:41:02 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/2026cea7fa1b2146d7113dc31f2a2969d9ec58e3 Cr-Commit-Position: refs/heads/master@{#408788}
4 years, 4 months ago (2016-07-29 22:43:37 UTC) #25
tapted
4 years, 4 months ago (2016-08-01 06:02:07 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2201653003/ by tapted@chromium.org.

The reason for reverting is: Suspect for widespread Win7 NaCl failures starting
with
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/bui...

Wasn't r408782, r408787 or r408781.

Powered by Google App Engine
This is Rietveld 408576698