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

Issue 10217017: Allow features to refer to subkeys in _manifest_features.json. (Closed)

Created:
8 years, 8 months ago by Matt Perry
Modified:
8 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Allow features to refer to subkeys in _manifest_features.json. Manifest restriction violations are now warnings instead of fatal errors. Add background.persistent subkey and restrict it to dev mode. BUG=122459 TEST=no Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134596

Patch Set 1 #

Total comments: 1

Patch Set 2 : Validate gives errors again #

Total comments: 4

Patch Set 3 : warnings #

Patch Set 4 : sync #

Patch Set 5 : fix theme test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+488 lines, -483 lines) Patch
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 1 chunk +10 lines, -5 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp.zip View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/transientPage/basic.zip View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 136 chunks +368 lines, -365 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/manifest.h View 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/manifest.cc View 1 2 3 chunks +27 lines, -22 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_background_unittest.cc View 1 2 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/manifest_unittest.cc View 1 2 5 chunks +46 lines, -73 lines 0 comments Download
M chrome/test/data/extensions/manifest_tests/init_invalid_platform_app_3.json View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Matt Perry
http://codereview.chromium.org/10217017/diff/1/chrome/common/extensions/manifest.cc File chrome/common/extensions/manifest.cc (right): http://codereview.chromium.org/10217017/diff/1/chrome/common/extensions/manifest.cc#newcode160 chrome/common/extensions/manifest.cc:160: return true; This is technically a change in functionality ...
8 years, 8 months ago (2012-04-25 01:06:26 UTC) #1
Matt Perry
Hmm.. I changed ValidateManifest to emit warnings instead of errors, but on second thought, I ...
8 years, 8 months ago (2012-04-25 01:22:41 UTC) #2
Matt Perry
OK, ready for another look. ValidateManifest now gives fatal errors instead of warnings again. I ...
8 years, 8 months ago (2012-04-25 20:50:17 UTC) #3
Aaron Boodman
http://codereview.chromium.org/10217017/diff/5001/chrome/common/extensions/api/_manifest_features.json File chrome/common/extensions/api/_manifest_features.json (right): http://codereview.chromium.org/10217017/diff/5001/chrome/common/extensions/api/_manifest_features.json#newcode19 chrome/common/extensions/api/_manifest_features.json:19: "extension", "packaged_app", "hosted_app", "platform_app" Omit 'hosted_app'. http://codereview.chromium.org/10217017/diff/5001/chrome/common/extensions/manifest_unittest.cc File chrome/common/extensions/manifest_unittest.cc ...
8 years, 8 months ago (2012-04-25 21:48:31 UTC) #4
Matt Perry
OK, ValidateManifest is back to emitting non-fatal warnings. http://codereview.chromium.org/10217017/diff/5001/chrome/common/extensions/api/_manifest_features.json File chrome/common/extensions/api/_manifest_features.json (right): http://codereview.chromium.org/10217017/diff/5001/chrome/common/extensions/api/_manifest_features.json#newcode19 chrome/common/extensions/api/_manifest_features.json:19: "extension", ...
8 years, 8 months ago (2012-04-25 22:28:18 UTC) #5
Matt Perry
Hmm... This change allows someone to create a theme with extension elements. We'll install it, ...
8 years, 8 months ago (2012-04-26 01:13:36 UTC) #6
Aaron Boodman
On Wed, Apr 25, 2012 at 6:13 PM, <mpcomplete@chromium.org> wrote: > Hmm... This change allows ...
8 years, 8 months ago (2012-04-26 01:27:56 UTC) #7
Matt Perry
OK, I updated the InstallTheme test to take into account the change in behavior.
8 years, 8 months ago (2012-04-27 20:25:40 UTC) #8
Aaron Boodman
8 years, 8 months ago (2012-04-28 02:27:48 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698