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

Issue 559603002: Add new ExtensionManagement preference (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@master
Project:
chromium
Visibility:
Public.

Description

Add new ExtensionManagement preference New ExtensionManagement preference is a policy-controlled dictionary preference for management of extensions. Current implementation covers all legacy extension management preference (installation_mode, install_sources, allowed_types). This CL includes extension preference parsing, definition of constants strings for properties/string enums in the new dictionary value, and a test helper class for manipulating it in unit tests. BUG=177351 Committed: https://crrev.com/b245438121f8dba852268c0bed0359c6f31c50c6 Cr-Commit-Position: refs/heads/master@{#295974}

Patch Set 1 : #

Patch Set 2 : temp #

Patch Set 3 : all tests added #

Patch Set 4 : fix #

Patch Set 5 : rebase; fixes #

Total comments: 38

Patch Set 6 : fixes addressing #2 #

Total comments: 32

Patch Set 7 : fixes addressing #9 #

Patch Set 8 : fix #

Total comments: 7

Patch Set 9 : fixes addressing #11 #

Total comments: 4

Patch Set 10 : fixes addressing #16 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+789 lines, -77 lines) Patch
M chrome/browser/extensions/extension_management.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management.cc View 1 2 3 4 5 6 7 8 9 8 chunks +135 lines, -4 lines 0 comments Download
A chrome/browser/extensions/extension_management_constants.h View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_management_constants.cc View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_management_test_util.h View 1 2 3 4 5 6 7 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_management_test_util.cc View 1 2 3 4 5 6 1 chunk +140 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_unittest.cc View 1 2 3 4 5 6 9 chunks +267 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 11 chunks +26 lines, -46 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -18 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 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/pref_names.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/pref_names.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
binjin
Joao, PTAL at this CL.
6 years, 3 months ago (2014-09-17 15:06:24 UTC) #5
Joao da Silva
https://codereview.chromium.org/559603002/diff/140001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/559603002/diff/140001/chrome/browser/extensions/extension_management.cc#newcode27 chrome/browser/extensions/extension_management.cc:27: const char kAllOtherExtension[] = "*"; Rename this to kWildcard ...
6 years, 3 months ago (2014-09-18 12:08:22 UTC) #6
Joao da Silva
The CL description should be updated to be more descriptive too. Imagine a sheriff from ...
6 years, 3 months ago (2014-09-18 12:09:19 UTC) #7
binjin
Hello Joao, I updated the description as well, please proof read it. Mean while, I ...
6 years, 3 months ago (2014-09-18 14:37:28 UTC) #8
Joao da Silva
I think the new unit tests add good coverage. What did you have in mind? ...
6 years, 3 months ago (2014-09-18 15:23:55 UTC) #9
binjin
https://codereview.chromium.org/559603002/diff/160001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/559603002/diff/160001/chrome/browser/extensions/extension_management.cc#newcode30 chrome/browser/extensions/extension_management.cc:30: // Parses the default settings On 2014/09/18 15:23:52, Joao ...
6 years, 3 months ago (2014-09-18 15:49:05 UTC) #10
Joao da Silva
Almost ready to go. https://codereview.chromium.org/559603002/diff/200001/chrome/browser/extensions/extension_management_constants.cc File chrome/browser/extensions/extension_management_constants.cc (right): https://codereview.chromium.org/559603002/diff/200001/chrome/browser/extensions/extension_management_constants.cc#newcode7 chrome/browser/extensions/extension_management_constants.cc:7: #include <string> This should be ...
6 years, 3 months ago (2014-09-19 07:27:26 UTC) #11
binjin
https://codereview.chromium.org/559603002/diff/200001/chrome/browser/extensions/extension_management_constants.cc File chrome/browser/extensions/extension_management_constants.cc (right): https://codereview.chromium.org/559603002/diff/200001/chrome/browser/extensions/extension_management_constants.cc#newcode7 chrome/browser/extensions/extension_management_constants.cc:7: #include <string> On 2014/09/19 07:27:26, Joao da Silva wrote: ...
6 years, 3 months ago (2014-09-19 10:06:08 UTC) #12
Joao da Silva
lgtm
6 years, 3 months ago (2014-09-19 10:11:17 UTC) #13
binjin
rockot, scheib: chrome/browser/extensions/* and extensions/browser/pref_names.{h,cc} Thanks! -bjin
6 years, 3 months ago (2014-09-19 10:37:50 UTC) #15
scheib
lgtm though please scrutinize the LOGs. https://codereview.chromium.org/559603002/diff/220001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/559603002/diff/220001/chrome/browser/extensions/extension_management.cc#newcode60 chrome/browser/extensions/extension_management.cc:60: LOG(WARNING) << "Invalid ...
6 years, 3 months ago (2014-09-19 16:22:14 UTC) #16
binjin
https://codereview.chromium.org/559603002/diff/220001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/559603002/diff/220001/chrome/browser/extensions/extension_management.cc#newcode60 chrome/browser/extensions/extension_management.cc:60: LOG(WARNING) << "Invalid value for 'installation_mode'."; On 2014/09/19 16:22:13, ...
6 years, 3 months ago (2014-09-22 13:53:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/559603002/240001
6 years, 3 months ago (2014-09-22 13:54:52 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/11095)
6 years, 3 months ago (2014-09-22 14:45:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/559603002/240001
6 years, 3 months ago (2014-09-22 14:50:22 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:240001) as ce498ba520655f72be588aecabf0bb00d74fed8a
6 years, 3 months ago (2014-09-22 15:17:52 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 15:18:24 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b245438121f8dba852268c0bed0359c6f31c50c6
Cr-Commit-Position: refs/heads/master@{#295974}

Powered by Google App Engine
This is Rietveld 408576698