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

Issue 9694038: OBSOLETE REVIEW. See http://codereview.chromium.org/10382149/ (Closed)

Created:
8 years, 9 months ago by Pam (message me for reviews)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, arv (Not doing code reviews), mihaip+watch_chromium.org
Visibility:
Public.

Description

Refactor the various ways to control what users can do to extensions. Add an ExtensionManagementPolicy class, held by the ExtensionService, that registers delegates and mediates questions about what can be done to extensions (install, uninstall, modify, etc.). Convert existing mechanisms to control extension operations, namely administrator policy black/whitelists and component extension requirements, to use this abstraction. In addition to cleaning up existing mechanisms, this will support the control managed mode needs to impose (in an upcoming patch). BUG=117987 TEST=covered by unit, browser, and api tests

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Ash fix #

Patch Set 8 : #

Patch Set 9 : Resolved conflicts #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 29
Unified diffs Side-by-side diffs Delta from patch set Stats (+1155 lines, -93 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +6 lines, -3 lines 1 comment Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -6 lines 1 comment Download
M chrome/browser/extensions/extension_context_menu_browsertest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +44 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -7 lines 6 comments Download
M chrome/browser/extensions/extension_management_api_constants.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_api_constants.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_apitest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +55 lines, -1 line 0 comments Download
A chrome/browser/extensions/extension_management_policy.h View 1 2 3 4 5 6 7 1 chunk +80 lines, -0 lines 8 comments Download
A chrome/browser/extensions/extension_management_policy.cc View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 4 comments Download
A chrome/browser/extensions/extension_management_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +181 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -4 lines 3 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -8 lines 2 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +57 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +205 lines, -10 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -2 lines 4 comments Download
A chrome/browser/extensions/test_extension_management_policy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/extensions/test_extension_management_policy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_service.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_service.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/ash/app_list/extension_app_item.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/management_policy/allowed.html View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/management_policy/allowed.js View 1 2 3 4 5 6 7 8 9 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/management_policy/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/management_policy/prohibited.html View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/management_policy/prohibited.js View 1 2 3 4 5 6 7 8 9 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Pam (message me for reviews)
Hi Evan, Please take a look. I'll attach some screenshots to the bug for reference. ...
8 years, 9 months ago (2012-03-13 13:58:16 UTC) #1
Evan Stade
https://chromiumcodereview.appspot.com/9694038/diff/1009/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://chromiumcodereview.appspot.com/9694038/diff/1009/chrome/browser/resources/extensions/extension_list.js#newcode156 chrome/browser/resources/extensions/extension_list.js:156: if (this.data_.managedMode) { node.querySelector('.optional-controls').hidden = this.data_.managedMode; https://chromiumcodereview.appspot.com/9694038/diff/1009/chrome/browser/resources/extensions/extensions.html File chrome/browser/resources/extensions/extensions.html ...
8 years, 9 months ago (2012-03-13 21:02:07 UTC) #2
Aaron Boodman
This is not going to be the right approach. There are many ways to disable/uninstall/otherwise ...
8 years, 9 months ago (2012-03-13 21:29:35 UTC) #3
Pam (message me for reviews)
On 2012/03/13 21:29:35, Aaron Boodman wrote: > This is not going to be the right ...
8 years, 9 months ago (2012-03-13 22:43:02 UTC) #4
Aaron Boodman
On Tue, Mar 13, 2012 at 3:43 PM, <pam@chromium.org> wrote: > On 2012/03/13 21:29:35, Aaron ...
8 years, 9 months ago (2012-03-13 22:53:03 UTC) #5
Pam (message me for reviews)
Resolved conflicts
8 years, 7 months ago (2012-05-14 08:47:22 UTC) #6
Aaron Boodman
http://codereview.chromium.org/9694038/diff/18021/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/9694038/diff/18021/chrome/app/generated_resources.grd#newcode4391 chrome/app/generated_resources.grd:4391: + <ph name="EXTENSION_NAME">$1<ex>Google Talk</ex></ph> (extension ID "<ph name="EXTENSION_ID">$2<ex>nckgahadagoaajjgafhacjanaoiihapd</ex></ph>") is ...
8 years, 7 months ago (2012-05-17 22:41:06 UTC) #7
Pam (message me for reviews)
Replies to comments. The new patchset is over in the real review. Sorry for the ...
8 years, 7 months ago (2012-05-18 20:15:15 UTC) #8
Pam (message me for reviews)
8 years, 7 months ago (2012-05-22 12:51:49 UTC) #9
All Aaron's comments and my replies have been copied to the new review
(10382149). This one is now (again) obsolete.

Powered by Google App Engine
This is Rietveld 408576698