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

Issue 14587009: Added a PolicyManifestHandler. (Closed)

Created:
7 years, 7 months ago by Joao da Silva
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Added a PolicyManifestHandler. This handles the "storage.managed_schema" manifest key, and validates the schema when this key is present. The schema is then published in the descriptor of the extensions' policy namespace. BUG=108992 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202445

Patch Set 1 #

Patch Set 2 : Fix win build #

Total comments: 24

Patch Set 3 : actually upload changes #

Total comments: 8

Patch Set 4 : fixed nits #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Total comments: 24

Patch Set 7 : addressed comments #

Patch Set 8 : addressed comments #

Patch Set 9 : missing changes #

Total comments: 12

Patch Set 10 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -9 lines) Patch
M chrome/browser/extensions/api/storage/managed_value_store_cache.cc View 1 2 3 4 5 6 6 chunks +77 lines, -9 lines 0 comments Download
A chrome/browser/extensions/api/storage/storage_schema_manifest_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/storage/storage_schema_manifest_handler.cc View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/storage/storage_schema_manifest_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +162 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/managed_extension/manifest.json View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/managed_extension/schema/managed_storage.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/managed_extension2/managed_storage_schema.json View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/managed_extension2/manifest.json View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Joao da Silva
This depends on https://codereview.chromium.org/15061007. @kalman: please review; I'm not sure I got everything that needs ...
7 years, 7 months ago (2013-05-14 16:46:04 UTC) #1
Mattias Nissler (ping if slow)
Is the test data you're adding in this patch actually used? https://codereview.chromium.org/14587009/diff/15001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): ...
7 years, 7 months ago (2013-05-15 10:37:38 UTC) #2
not at google - send to devlin
I got up to PolicyManifestHander then started to chat to Joao about it. Basically: a ...
7 years, 7 months ago (2013-05-16 16:34:15 UTC) #3
not at google - send to devlin
Oops, actually +yoz.
7 years, 7 months ago (2013-05-16 16:34:30 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/14587009/diff/15001/chrome/browser/policy/policy_manifest_handler.h File chrome/browser/policy/policy_manifest_handler.h (right): https://codereview.chromium.org/14587009/diff/15001/chrome/browser/policy/policy_manifest_handler.h#newcode12 chrome/browser/policy/policy_manifest_handler.h:12: class PolicyManifestHandler : public extensions::ManifestHandler { On 2013/05/16 16:34:15, ...
7 years, 7 months ago (2013-05-16 18:27:54 UTC) #5
Yoyo Zhou
kalman: if an extension fails to Validate it does not load. So, based on my ...
7 years, 7 months ago (2013-05-16 19:14:16 UTC) #6
Joao da Silva
@bartfab: please review policy/ @mnissler: yes, the test data is used by ExtensionSettingsApiTests. @kalman, @yoz: ...
7 years, 7 months ago (2013-05-19 13:21:35 UTC) #7
not at google - send to devlin
> > Please have another look :-) Thanks! > It doesn't look like you've uploaded ...
7 years, 7 months ago (2013-05-20 21:11:11 UTC) #8
bartfab (slow)
Indeed, you seem to have forgotten to upload the most recent revision for this CL.
7 years, 7 months ago (2013-05-21 12:18:15 UTC) #9
Joao da Silva
Teehee you're right! Here's the updated CL :-) @kalman, bartfab: PTAL
7 years, 7 months ago (2013-05-21 18:14:23 UTC) #10
bartfab (slow)
After your refactorings, there is no more policy/ left to review :). I took the ...
7 years, 7 months ago (2013-05-22 11:00:09 UTC) #11
Joao da Silva
You're right, it's all extensions/ code now :-) Fixed the nits, waiting for input from ...
7 years, 7 months ago (2013-05-22 12:26:19 UTC) #12
Joao da Silva
@kalman: friendly ping
7 years, 7 months ago (2013-05-23 08:05:03 UTC) #13
not at google - send to devlin
sorry I lost track of the review! https://codereview.chromium.org/14587009/diff/96001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/14587009/diff/96001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode119 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:119: weak_factory_.GetWeakPtr())); Why ...
7 years, 7 months ago (2013-05-23 16:56:18 UTC) #14
Joao da Silva
@kalman: PTAL https://codereview.chromium.org/14587009/diff/96001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/14587009/diff/96001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode119 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:119: weak_factory_.GetWeakPtr())); On 2013/05/23 16:56:18, kalman wrote: > ...
7 years, 7 months ago (2013-05-24 21:31:48 UTC) #15
not at google - send to devlin
a few more comments but lgtm https://codereview.chromium.org/14587009/diff/96001/chrome/common/extensions/api/_manifest_features.json File chrome/common/extensions/api/_manifest_features.json (right): https://codereview.chromium.org/14587009/diff/96001/chrome/common/extensions/api/_manifest_features.json#newcode316 chrome/common/extensions/api/_manifest_features.json:316: "extension_types": "all", On ...
7 years, 7 months ago (2013-05-25 00:50:57 UTC) #16
not at google - send to devlin
Incidentally I realise I've been silly and we should have just been parsing the whole ...
7 years, 7 months ago (2013-05-25 00:56:59 UTC) #17
Joao da Silva
Thanks for the comments. I'll leave the parsing of "storage.managed_schema" as is for now then. ...
7 years, 7 months ago (2013-05-27 12:13:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/14587009/132001
7 years, 7 months ago (2013-05-27 15:19:05 UTC) #19
commit-bot: I haz the power
7 years, 7 months ago (2013-05-27 16:37:23 UTC) #20
Message was sent while issue was closed.
Change committed as 202445

Powered by Google App Engine
This is Rietveld 408576698