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

Issue 500043003: Add PolicyProvider to ExtensionManagement (Closed)

Created:
6 years, 3 months ago by binjin
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ext-1
Project:
chromium
Visibility:
Public.

Description

Add StandardManagementPolicyProvider implementation based on ExtensionManagement Service. Make ExtensionManagement listening to preference changes. Move all functionality of admin_policy into StandardManagementPolicyProvider, the latter was essentially a wrapper over admin_policy before. Merge admin_policy_unittest into extension_management_unittests with minor changes. BUG=177351 TEST=ExtensionServiceTest,ExtensionManagementTest,ExtensionAdminPolicyTest Committed: https://crrev.com/1569c9bdcf86c361b0b79c697d0da76d03d70a96 Cr-Commit-Position: refs/heads/master@{#293514}

Patch Set 1 : not tested #

Patch Set 2 : readd 445233002 and 362103004 #

Patch Set 3 : rebase #

Patch Set 4 : rebase; new tests inherited from admin_policy_unittests #

Patch Set 5 : rebase; move Refresh() to private and delete unneeded calls #

Patch Set 6 : rebase, format correction #

Total comments: 12

Patch Set 7 : fixes to #3 #

Total comments: 2

Patch Set 8 : fixes to #5 #

Total comments: 4

Patch Set 9 : fixes to #8 #

Patch Set 10 : a minor change #

Patch Set 11 : rebase, update BUILD.gn #

Patch Set 12 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -492 lines) Patch
M chrome/browser/extensions/extension_management.h View 1 2 3 4 5 6 7 5 chunks +62 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_management.cc View 1 2 3 4 5 6 5 chunks +84 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_management_unittest.cc View 1 2 3 4 5 6 7 10 chunks +238 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 6 chunks +11 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +23 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_system_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 2 4 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.cc View 1 2 3 4 5 6 7 8 3 chunks +98 lines, -25 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider_unittest.cc View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
D extensions/browser/admin_policy.h View 1 chunk +0 lines, -42 lines 0 comments Download
D extensions/browser/admin_policy.cc View 1 chunk +0 lines, -125 lines 0 comments Download
D extensions/browser/admin_policy_unittest.cc View 1 chunk +0 lines, -196 lines 0 comments Download
M extensions/browser/extension_prefs.h View 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (13 generated)
binjin
Hello Joao, PTAL at this CL, there are several major changes and it's been a ...
6 years, 3 months ago (2014-09-02 20:47:49 UTC) #2
Joao da Silva
Looks good. https://codereview.chromium.org/500043003/diff/100001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/500043003/diff/100001/chrome/browser/extensions/extension_management.cc#newcode61 chrome/browser/extensions/extension_management.cc:61: base::Unretained(this))); Suggestion: all of these registrations use ...
6 years, 3 months ago (2014-09-03 11:52:54 UTC) #3
binjin
https://codereview.chromium.org/500043003/diff/100001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/500043003/diff/100001/chrome/browser/extensions/extension_management.cc#newcode61 chrome/browser/extensions/extension_management.cc:61: base::Unretained(this))); On 2014/09/03 11:52:54, Joao da Silva wrote: > ...
6 years, 3 months ago (2014-09-03 15:31:37 UTC) #4
Joao da Silva
lgtm https://codereview.chromium.org/500043003/diff/120001/chrome/browser/extensions/extension_management_unittest.cc File chrome/browser/extensions/extension_management_unittest.cc (right): https://codereview.chromium.org/500043003/diff/120001/chrome/browser/extensions/extension_management_unittest.cc#newcode39 chrome/browser/extensions/extension_management_unittest.cc:39: } This is not needed
6 years, 3 months ago (2014-09-04 10:17:46 UTC) #5
binjin
finnur: It's the following CL after https://codereview.chromium.org/499313002/ , PTAL at chrome/browser/extensions/* and extensions/* changes darin: ...
6 years, 3 months ago (2014-09-04 10:43:10 UTC) #7
Finnur
I'm not an expert on management policies, so I'm trusting Joao da Silva for that. ...
6 years, 3 months ago (2014-09-04 11:29:46 UTC) #8
binjin
These code were inherited from (now deleted) admin_policy code. I made necessary simplification though. @Joao, ...
6 years, 3 months ago (2014-09-04 13:06:57 UTC) #10
Joao da Silva
Still lgtm after the recent changes.
6 years, 3 months ago (2014-09-04 14:46:10 UTC) #11
Finnur
LGTM
6 years, 3 months ago (2014-09-04 16:06:14 UTC) #12
binjin
erg, noms: please take a quick look on changes to chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc thanks -bjin
6 years, 3 months ago (2014-09-04 16:13:14 UTC) #14
Elliot Glaysher
lgtm
6 years, 3 months ago (2014-09-04 17:10:56 UTC) #15
noms (inactive)
profiles lgtm
6 years, 3 months ago (2014-09-04 17:12:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/500043003/200001
6 years, 3 months ago (2014-09-04 17:50:02 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/12360)
6 years, 3 months ago (2014-09-04 20:04:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/500043003/200001
6 years, 3 months ago (2014-09-04 22:53:04 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/12442)
6 years, 3 months ago (2014-09-04 23:35:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/500043003/200001
6 years, 3 months ago (2014-09-05 02:28:36 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/12537)
6 years, 3 months ago (2014-09-05 02:56:47 UTC) #28
Joao da Silva
admin_policy.h and .cc need to be removed from extensions/browser/BUILD.gn too
6 years, 3 months ago (2014-09-05 05:51:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/500043003/220001
6 years, 3 months ago (2014-09-05 12:05:02 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/52125) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/12542) android_arm64_dbg_recipe ...
6 years, 3 months ago (2014-09-05 12:16:05 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/binjin@chromium.org/500043003/240001
6 years, 3 months ago (2014-09-05 12:23:45 UTC) #35
commit-bot: I haz the power
Committed patchset #12 (id:240001) as b5da32eab6e40a28dc863ddc438128da126e1a09
6 years, 3 months ago (2014-09-05 13:36:17 UTC) #36
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:39:20 UTC) #37
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/1569c9bdcf86c361b0b79c697d0da76d03d70a96
Cr-Commit-Position: refs/heads/master@{#293514}

Powered by Google App Engine
This is Rietveld 408576698