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

Issue 102493002: Use schemas bundled in extensions to convert policies loaded on Windows. (Closed)

Created:
7 years ago by Joao da Silva
Modified:
7 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use schemas bundled in extensions to convert policies loaded on Windows. Extensions that support policies must declare those policies in a JSON schema. All the policy providers get a mapping from components to their schemas. This change makes the Windows policy provider use those schemas when loading policies from GPO or the registry. The previous behavior was to load the schema from GPO/the registry too; this behavior is still used if the extension doesn't include a schema, to support the Legacy Browser Support extension for the next releases. BUG=108994, 108992 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239520

Patch Set 1 #

Patch Set 2 : added bug url #

Total comments: 2

Patch Set 3 : special handling for LBS #

Total comments: 6

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -384 lines) Patch
M chrome/browser/extensions/api/storage/managed_value_store_cache.cc View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M components/policy/core/common/configuration_policy_provider_test.cc View 1 2 2 chunks +17 lines, -6 lines 0 comments Download
M components/policy/core/common/policy_loader_win.h View 1 2 3 3 chunks +0 lines, -5 lines 0 comments Download
M components/policy/core/common/policy_loader_win.cc View 1 2 3 9 chunks +67 lines, -67 lines 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 1 2 3 15 chunks +137 lines, -169 lines 0 comments Download
M components/policy/core/common/registry_dict_win.h View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M components/policy/core/common/registry_dict_win.cc View 1 2 3 8 chunks +57 lines, -108 lines 0 comments Download
M components/policy/core/common/registry_dict_win_unittest.cc View 1 2 4 chunks +45 lines, -15 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Joao da Silva
Please have a look, thanks!
7 years ago (2013-12-03 17:59:26 UTC) #1
Mattias Nissler (ping if slow)
Code looks reasonable to me, but there's one thing I don't understand. https://codereview.chromium.org/102493002/diff/20001/components/policy/core/common/schema.h File components/policy/core/common/schema.h ...
7 years ago (2013-12-03 20:21:59 UTC) #2
Joao da Silva
https://codereview.chromium.org/102493002/diff/20001/components/policy/core/common/schema.h File components/policy/core/common/schema.h (right): https://codereview.chromium.org/102493002/diff/20001/components/policy/core/common/schema.h#newcode57 components/policy/core/common/schema.h:57: // updated to use a proper schema. On 2013/12/03 ...
7 years ago (2013-12-04 10:20:06 UTC) #3
Joao da Silva
Mattias, PTAL. This handles LBS explicitly now, so that other extensions can't rely on the ...
7 years ago (2013-12-05 18:12:08 UTC) #4
Joao da Silva
@Benjamin: please review the change to managed_value_store_cache.cc. Thanks!
7 years ago (2013-12-05 18:14:07 UTC) #5
not at google - send to devlin
lgtm
7 years ago (2013-12-05 18:15:43 UTC) #6
Mattias Nissler (ping if slow)
https://codereview.chromium.org/102493002/diff/40001/chrome/browser/policy/policy_loader_win.cc File chrome/browser/policy/policy_loader_win.cc (right): https://codereview.chromium.org/102493002/diff/40001/chrome/browser/policy/policy_loader_win.cc#newcode516 chrome/browser/policy/policy_loader_win.cc:516: ParsePolicy(policy_dict, kLevels[j].level, scope, schema, &policy); On 2013/12/05 18:12:08, Joao ...
7 years ago (2013-12-06 10:25:31 UTC) #7
Joao da Silva
Thanks for noticing the subtle behavior. The LBSSupport unittest is verifying that Chrome is doing ...
7 years ago (2013-12-06 17:25:16 UTC) #8
Mattias Nissler (ping if slow)
LGTM https://codereview.chromium.org/102493002/diff/40001/chrome/browser/policy/policy_loader_win.cc File chrome/browser/policy/policy_loader_win.cc (right): https://codereview.chromium.org/102493002/diff/40001/chrome/browser/policy/policy_loader_win.cc#newcode516 chrome/browser/policy/policy_loader_win.cc:516: ParsePolicy(policy_dict, kLevels[j].level, scope, schema, &policy); On 2013/12/06 17:25:16, ...
7 years ago (2013-12-09 14:07:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/102493002/60001
7 years ago (2013-12-09 15:14:28 UTC) #10
commit-bot: I haz the power
7 years ago (2013-12-09 18:14:28 UTC) #11
Message was sent while issue was closed.
Change committed as 239520

Powered by Google App Engine
This is Rietveld 408576698