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

Issue 10510006: Add ManagedModePolicyProvider and extension API to get and set policies. (Closed)

Created:
8 years, 6 months ago by Bernhard Bauer
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, battre
Visibility:
Public.

Description

Add ManagedModePolicyProvider and extension API to get and set policies. BUG=128318 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142720

Patch Set 1 #

Patch Set 2 : sync? #

Patch Set 3 : sync #

Patch Set 4 : ifx #

Patch Set 5 : . #

Total comments: 41

Patch Set 6 : review #

Total comments: 5

Patch Set 7 : unit test #

Patch Set 8 : #ifdefs #

Total comments: 4

Patch Set 9 : test #

Total comments: 4

Patch Set 10 : test #

Patch Set 11 : fix unit test #

Total comments: 2

Patch Set 12 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+537 lines, -9 lines) Patch
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_managed_mode_api.h View 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_managed_mode_api.cc View 1 2 3 4 5 6 7 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/policy/managed_mode_policy_provider.h View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/policy/managed_mode_policy_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/policy/managed_mode_policy_provider_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/policy/managed_mode_policy_provider_factory.cc View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/policy/managed_mode_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +168 lines, -0 lines 0 comments Download
M chrome/browser/prefs/testing_pref_store.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/prefs/testing_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/managed_mode_private.json View 1 2 3 4 5 3 chunks +50 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Bernhard Bauer
Hi Mattias and Joao, please take a look at this CL, then I'll add OWNERS ...
8 years, 6 months ago (2012-06-06 14:11:28 UTC) #1
Joao da Silva
Looks good. Please notice that the whole policy/ directory is not compiled in when ENABLE_CONFIGURATION_POLICY ...
8 years, 6 months ago (2012-06-06 16:36:38 UTC) #2
Mattias Nissler (ping if slow)
A unit test for ManagedModePolicyProvider would be good (we have an abstract test you can ...
8 years, 6 months ago (2012-06-06 17:22:09 UTC) #3
Joao da Silva
http://codereview.chromium.org/10510006/diff/16004/chrome/browser/policy/managed_mode_policy_provider.cc File chrome/browser/policy/managed_mode_policy_provider.cc (right): http://codereview.chromium.org/10510006/diff/16004/chrome/browser/policy/managed_mode_policy_provider.cc#newcode86 chrome/browser/policy/managed_mode_policy_provider.cc:86: policy_bundle->Get(POLICY_DOMAIN_CHROME, std::string()).MergeFrom(policy_map); On 2012/06/06 17:22:09, Mattias Nissler wrote: > ...
8 years, 6 months ago (2012-06-06 19:07:24 UTC) #4
Bernhard Bauer
Thanks for the reviews! https://chromiumcodereview.appspot.com/10510006/diff/16004/chrome/browser/extensions/extension_managed_mode_api.cc File chrome/browser/extensions/extension_managed_mode_api.cc (right): https://chromiumcodereview.appspot.com/10510006/diff/16004/chrome/browser/extensions/extension_managed_mode_api.cc#newcode18 chrome/browser/extensions/extension_managed_mode_api.cc:18: #include "chrome/browser/policy/managed_mode_policy_provider_factory.h" On 2012/06/06 16:36:38, ...
8 years, 6 months ago (2012-06-08 10:06:44 UTC) #5
Joao da Silva
lgtm! I wrote #ifdef in the comments for brevity, but the common format is #if ...
8 years, 6 months ago (2012-06-08 10:30:58 UTC) #6
Mattias Nissler (ping if slow)
I'm not sure whether you've just missed my comment that requested a unit tests or ...
8 years, 6 months ago (2012-06-08 10:32:17 UTC) #7
Bernhard Bauer
On 2012/06/08 10:32:17, Mattias Nissler wrote: > I'm not sure whether you've just missed my ...
8 years, 6 months ago (2012-06-11 10:52:17 UTC) #8
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10510006/diff/14021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc File chrome/browser/policy/managed_mode_policy_provider_unittest.cc (right): http://codereview.chromium.org/10510006/diff/14021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc#newcode6 chrome/browser/policy/managed_mode_policy_provider_unittest.cc:6: #include "chrome/browser/policy/configuration_policy_provider_test.h" alphabetize (or blank line between managed_mode_policy_provider.h, but ...
8 years, 6 months ago (2012-06-12 02:58:53 UTC) #9
Bernhard Bauer
http://codereview.chromium.org/10510006/diff/14021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc File chrome/browser/policy/managed_mode_policy_provider_unittest.cc (right): http://codereview.chromium.org/10510006/diff/14021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc#newcode6 chrome/browser/policy/managed_mode_policy_provider_unittest.cc:6: #include "chrome/browser/policy/configuration_policy_provider_test.h" On 2012/06/12 02:58:54, Mattias Nissler wrote: > ...
8 years, 6 months ago (2012-06-12 21:27:18 UTC) #10
Mattias Nissler (ping if slow)
LGTM. If you decide to implement that additional test, please have a second pair of ...
8 years, 6 months ago (2012-06-13 04:53:44 UTC) #11
Bernhard Bauer
Meh, I forgot that I need OWNERS reviews anyway. Sailesh, Finnur, can I get OWNERS ...
8 years, 6 months ago (2012-06-13 14:42:29 UTC) #12
Mattias Nissler (ping if slow)
LGTM
8 years, 6 months ago (2012-06-13 14:49:56 UTC) #13
Finnur
Extensions part LGTM.
8 years, 6 months ago (2012-06-13 14:55:21 UTC) #14
sail
Profiles LGTM
8 years, 6 months ago (2012-06-13 16:28:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/10510006/25002
8 years, 6 months ago (2012-06-13 16:40:04 UTC) #16
commit-bot: I haz the power
Try job failure for 10510006-25002 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 6 months ago (2012-06-13 17:40:10 UTC) #17
Bernhard Bauer
Sorry, I need another look :) Turns out, my newly added test was failing because ...
8 years, 6 months ago (2012-06-14 19:09:44 UTC) #18
Joao da Silva
lgtm; see the comment inline. http://codereview.chromium.org/10510006/diff/24021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc File chrome/browser/policy/managed_mode_policy_provider_unittest.cc (right): http://codereview.chromium.org/10510006/diff/24021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc#newcode12 chrome/browser/policy/managed_mode_policy_provider_unittest.cc:12: const char kPolicies[] = ...
8 years, 6 months ago (2012-06-16 17:01:19 UTC) #19
Bernhard Bauer
http://codereview.chromium.org/10510006/diff/24021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc File chrome/browser/policy/managed_mode_policy_provider_unittest.cc (right): http://codereview.chromium.org/10510006/diff/24021/chrome/browser/policy/managed_mode_policy_provider_unittest.cc#newcode12 chrome/browser/policy/managed_mode_policy_provider_unittest.cc:12: const char kPolicies[] = "policies"; On 2012/06/16 17:01:19, Joao ...
8 years, 6 months ago (2012-06-18 14:07:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/10510006/30001
8 years, 6 months ago (2012-06-18 14:08:40 UTC) #21
commit-bot: I haz the power
8 years, 6 months ago (2012-06-18 15:59:07 UTC) #22
Change committed as 142720

Powered by Google App Engine
This is Rietveld 408576698