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

Issue 706623004: Add minimum version to extension management (Closed)

Created:
6 years, 1 month ago by binjin
Modified:
6 years ago
CC:
eaugusti, chromium-reviews, chromium-apps-reviews_chromium.org, joaodasilva+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ext-update-url
Project:
chromium
Visibility:
Public.

Description

Add minimum version to extension management This CL adds 'minimum_version' setting to ExtensionManagement. Allows policy to specify the minimum version required for the specified extension to be enabled. This CL adds another Extension::DisableReason DISABLE_UPDATE_REQUIRED_BY_POLICY, and using it to track extensions being disabled by minimum version settings, and re-enable them if necessary. BUG=177351 Committed: https://crrev.com/8e3d01889d55c01618e575d0b8271a24a50cb5c2 Cr-Commit-Position: refs/heads/master@{#306834}

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Total comments: 20

Patch Set 5 : rebase #

Patch Set 6 : fixes addressing #6 #

Patch Set 7 : fix browser_tests #

Patch Set 8 : rebase #

Patch Set 9 : rebase; fix re-enabling after policy changes #

Patch Set 10 : more fixes #

Patch Set 11 : rebase #

Patch Set 12 : rebase; add webui changes #

Patch Set 13 : fix indent in HTML #

Total comments: 14

Patch Set 14 : fixes addressing #10 #

Patch Set 15 : fix compile on win #

Total comments: 6

Patch Set 16 : fixes addressing #12 #

Patch Set 17 : fix comment #

Total comments: 60

Patch Set 18 : fixes addressing #16 #

Total comments: 5

Patch Set 19 : fixes addressing #18 #

Total comments: 9

Patch Set 20 : fixes addressing #20 & #22 #

Patch Set 21 : rebase #

Patch Set 22 : rebase #

Patch Set 23 : rebase #

Patch Set 24 : fix browser tests #

Total comments: 2

Patch Set 25 : fixes addressing #39 #

Total comments: 48

Patch Set 26 : fixes addressing #44 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -37 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_management_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management_internal.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +26 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_management_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +49 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +73 lines, -15 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.cc View 1 2 3 18 19 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +190 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/resources/extensions/extensions.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +8 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +7 lines, -0 lines 0 comments Download
M extensions/common/extension.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -1 line 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 49 (15 generated)
binjin
Hello Joao, This CL is still a WIP, but I think it's now okay for ...
6 years, 1 month ago (2014-11-10 18:26:31 UTC) #2
Joao da Silva
I have limited availability to review this during this week. Can you find another reviewer? ...
6 years, 1 month ago (2014-11-11 12:04:24 UTC) #3
binjin
+Julian
6 years, 1 month ago (2014-11-11 12:26:24 UTC) #5
pastarmovj
mostly nits and a couple of suggestions for the unit tests. However I can not ...
6 years, 1 month ago (2014-11-11 12:50:55 UTC) #6
binjin
https://codereview.chromium.org/706623004/diff/60001/chrome/browser/extensions/extension_management.h File chrome/browser/extensions/extension_management.h (right): https://codereview.chromium.org/706623004/diff/60001/chrome/browser/extensions/extension_management.h#newcode124 chrome/browser/extensions/extension_management.h:124: // Returns true if |extension| meet the minimum required ...
6 years, 1 month ago (2014-11-11 19:10:38 UTC) #7
binjin
Joao, please take a look
6 years, 1 month ago (2014-11-17 14:48:03 UTC) #9
Joao da Silva
Looks good overall. Really good test coverage. https://codereview.chromium.org/706623004/diff/240001/chrome/browser/extensions/extension_management_constants.cc File chrome/browser/extensions/extension_management_constants.cc (right): https://codereview.chromium.org/706623004/diff/240001/chrome/browser/extensions/extension_management_constants.cc#newcode27 chrome/browser/extensions/extension_management_constants.cc:27: const char ...
6 years, 1 month ago (2014-11-17 16:17:42 UTC) #10
binjin
https://codereview.chromium.org/706623004/diff/240001/chrome/browser/extensions/extension_management_constants.cc File chrome/browser/extensions/extension_management_constants.cc (right): https://codereview.chromium.org/706623004/diff/240001/chrome/browser/extensions/extension_management_constants.cc#newcode27 chrome/browser/extensions/extension_management_constants.cc:27: const char kMinimumVersion[] = "minimum_version"; On 2014/11/17 16:17:41, Joao ...
6 years, 1 month ago (2014-11-18 13:25:55 UTC) #11
Joao da Silva
lgtm after fixing the remaining comments https://codereview.chromium.org/706623004/diff/280001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/706623004/diff/280001/chrome/browser/extensions/extension_service.cc#newcode1162 chrome/browser/extensions/extension_service.cc:1162: for (const std::string& ...
6 years, 1 month ago (2014-11-18 14:18:57 UTC) #12
binjin
finnur: chrome/browser/extensions/* chrome/browser/resources/extensions/* chrome/browser/ui/webui/extensions/* extensions/* isherman: tools/metrics/histograms/histograms.xml Thanks https://codereview.chromium.org/706623004/diff/280001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/706623004/diff/280001/chrome/browser/extensions/extension_service.cc#newcode1162 chrome/browser/extensions/extension_service.cc:1162: for ...
6 years, 1 month ago (2014-11-18 14:40:09 UTC) #14
Ilya Sherman
histograms.xml lgtm
6 years, 1 month ago (2014-11-18 21:38:15 UTC) #15
Finnur
https://codereview.chromium.org/706623004/diff/320001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/706623004/diff/320001/chrome/app/generated_resources.grd#newcode5313 chrome/app/generated_resources.grd:5313: + (This extension is outdated and disabled by enterprise ...
6 years, 1 month ago (2014-11-19 10:16:26 UTC) #16
binjin
https://codereview.chromium.org/706623004/diff/320001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/706623004/diff/320001/chrome/app/generated_resources.grd#newcode5313 chrome/app/generated_resources.grd:5313: + (This extension is outdated and disabled by enterprise ...
6 years, 1 month ago (2014-11-19 13:36:11 UTC) #17
Finnur
https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc#newcode221 chrome/browser/extensions/extension_management.cc:221: bool ExtensionManagement::CheckMinimumVersion( Adding 'Requirement' suffix feels redundant here. I'd ...
6 years, 1 month ago (2014-11-19 15:47:39 UTC) #18
binjin
https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc#newcode221 chrome/browser/extensions/extension_management.cc:221: bool ExtensionManagement::CheckMinimumVersion( On 2014/11/19 15:47:38, Finnur wrote: > Adding ...
6 years, 1 month ago (2014-11-19 17:21:42 UTC) #19
Finnur
https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc#newcode221 chrome/browser/extensions/extension_management.cc:221: bool ExtensionManagement::CheckMinimumVersion( OK, fine. If this is only set-able ...
6 years, 1 month ago (2014-11-19 20:50:18 UTC) #20
binjin
https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_service.cc#newcode1115 chrome/browser/extensions/extension_service.cc:1115: std::vector<std::string> to_enable; On 2014/11/19 20:50:18, Finnur wrote: > But... ...
6 years, 1 month ago (2014-11-19 21:31:41 UTC) #21
Finnur
https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_service.cc#newcode1115 chrome/browser/extensions/extension_service.cc:1115: std::vector<std::string> to_enable; Sorry, this confusion is, I think, on ...
6 years, 1 month ago (2014-11-20 12:25:35 UTC) #22
binjin
https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/706623004/diff/320001/chrome/browser/extensions/extension_management.cc#newcode221 chrome/browser/extensions/extension_management.cc:221: bool ExtensionManagement::CheckMinimumVersion( On 2014/11/19 20:50:18, Finnur wrote: > OK, ...
6 years, 1 month ago (2014-11-20 13:11:54 UTC) #23
binjin
https://codereview.chromium.org/706623004/diff/360001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/706623004/diff/360001/chrome/browser/extensions/extension_service.cc#newcode1671 chrome/browser/extensions/extension_service.cc:1671: } On 2014/11/20 12:25:35, Finnur wrote: > So, I ...
6 years, 1 month ago (2014-11-20 13:17:17 UTC) #24
binjin
Finnur, could you please have a look at my fixes addressing your comments?
6 years ago (2014-11-25 11:26:57 UTC) #25
Finnur
I believe they do. LGTM.
6 years ago (2014-11-27 13:38:40 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706623004/400001
6 years ago (2014-11-27 13:47:01 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706623004/440001
6 years ago (2014-12-01 14:55:49 UTC) #35
binjin
Joao, could you have a look at latest patchset, for a fix to the flaky ...
6 years ago (2014-12-03 12:21:45 UTC) #38
Joao da Silva
https://codereview.chromium.org/706623004/diff/500001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/706623004/diff/500001/chrome/browser/policy/policy_browsertest.cc#newcode2012 chrome/browser/policy/policy_browsertest.cc:2012: interceptor.AddRequestServicedCallback(base::Bind( This must be prepared before the policy is ...
6 years ago (2014-12-03 12:25:45 UTC) #39
binjin
https://codereview.chromium.org/706623004/diff/500001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/706623004/diff/500001/chrome/browser/policy/policy_browsertest.cc#newcode2012 chrome/browser/policy/policy_browsertest.cc:2012: interceptor.AddRequestServicedCallback(base::Bind( On 2014/12/03 12:25:45, Joao da Silva wrote: > ...
6 years ago (2014-12-03 12:40:00 UTC) #40
Joao da Silva
lgtm, thanks!
6 years ago (2014-12-03 12:42:50 UTC) #41
binjin
Bartosz, I need another owner approval for policy code, since Joao is not an OWNER ...
6 years ago (2014-12-03 12:58:49 UTC) #43
bartfab (slow)
chrome/browser/policy/policy_browsertest.cc and components/policy/resources/policy_templates.json LGTM. https://codereview.chromium.org/706623004/diff/520001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/706623004/diff/520001/chrome/browser/policy/policy_browsertest.cc#newcode18 chrome/browser/policy/policy_browsertest.cc:18: #include "base/message_loop/message_loop_proxy.h" Nit: You do ...
6 years ago (2014-12-04 13:53:01 UTC) #44
binjin
https://codereview.chromium.org/706623004/diff/520001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/706623004/diff/520001/chrome/browser/policy/policy_browsertest.cc#newcode18 chrome/browser/policy/policy_browsertest.cc:18: #include "base/message_loop/message_loop_proxy.h" On 2014/12/04 13:53:01, bartfab wrote: > Nit: ...
6 years ago (2014-12-04 15:43:16 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706623004/540001
6 years ago (2014-12-04 16:05:39 UTC) #47
commit-bot: I haz the power
Committed patchset #26 (id:540001)
6 years ago (2014-12-04 16:44:40 UTC) #48
commit-bot: I haz the power
6 years ago (2014-12-04 16:45:21 UTC) #49
Message was sent while issue was closed.
Patchset 26 (id:??) landed as
https://crrev.com/8e3d01889d55c01618e575d0b8271a24a50cb5c2
Cr-Commit-Position: refs/heads/master@{#306834}

Powered by Google App Engine
This is Rietveld 408576698