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

Issue 536753003: Add recommended extension installation support (Closed)

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

Description

Add recommended extension installation support Extensions on recommended installation list will be automatically installed just like forced installed extensions, but are allowed to be disabled (not allowed to be uninstalled). This CL adds a new ExternalLoader for recommended extension (use EXTERNAL_PREF_DOWNLOAD as location), another MustRemainInstalled() function to interface of ManagementPolicy, and related WebUI changes. BUG=177351 Committed: https://crrev.com/cccacefd3fc1ff73b976144fe1aeb74e47e848e6 Cr-Commit-Position: refs/heads/master@{#299336}

Patch Set 1 #

Patch Set 2 : Use seperate external_loader for recommended policies #

Patch Set 3 : add ui changes #

Total comments: 12

Patch Set 4 : fixes addressing #3 #

Total comments: 4

Patch Set 5 : fixes addressing #8 #

Patch Set 6 : rebase #

Total comments: 16

Patch Set 7 : use 'override' keyword #

Patch Set 8 : fixes addressing #21 #

Patch Set 9 : more fixes #

Total comments: 2

Patch Set 10 : fixes addressing #23 #

Patch Set 11 : add new test; fixes #

Patch Set 12 : rebase #

Total comments: 2

Patch Set 13 : fixes addressing #26 #

Patch Set 14 : rebase, more fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -24 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 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management.cc View 1 2 3 4 5 1 chunk +17 lines, -3 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 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/external_policy_loader.h View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/extensions/external_policy_loader.cc View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/extensions/external_policy_loader_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +20 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 3 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 4 5 6 7 3 chunks +4 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 10 11 12 13 4 chunks +15 lines, -4 lines 0 comments Download
M extensions/browser/management_policy.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M extensions/browser/management_policy.cc View 1 2 3 chunks +18 lines, -6 lines 0 comments Download
M extensions/browser/management_policy_unittest.cc View 1 3 chunks +31 lines, -0 lines 0 comments Download
M extensions/browser/test_management_policy.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M extensions/browser/test_management_policy.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (6 generated)
binjin
6 years, 3 months ago (2014-09-17 19:26:24 UTC) #2
Joao da Silva
Make the CL description more informative and add a BUG entry for this. https://codereview.chromium.org/536753003/diff/40001/chrome/browser/extensions/extension_management.h File ...
6 years, 3 months ago (2014-09-18 12:21:23 UTC) #3
binjin
https://codereview.chromium.org/536753003/diff/40001/chrome/browser/extensions/extension_management.h File chrome/browser/extensions/extension_management.h (right): https://codereview.chromium.org/536753003/diff/40001/chrome/browser/extensions/extension_management.h#newcode152 chrome/browser/extensions/extension_management.h:152: scoped_ptr<base::DictionaryValue> GetAutoInstallList(bool forced) const; On 2014/09/18 12:21:23, Joao da ...
6 years, 3 months ago (2014-09-18 16:25:16 UTC) #4
binjin
https://codereview.chromium.org/536753003/diff/40001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc File chrome/browser/ui/webui/extensions/extension_settings_handler.cc (right): https://codereview.chromium.org/536753003/diff/40001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc#newcode243 chrome/browser/ui/webui/extensions/extension_settings_handler.cc:243: management_policy_->MustRemainInstalled(extension, NULL); On 2014/09/18 16:25:16, bjin wrote: > On ...
6 years, 3 months ago (2014-09-18 17:44:07 UTC) #5
Joao da Silva
https://codereview.chromium.org/536753003/diff/40001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc File chrome/browser/ui/webui/extensions/extension_settings_handler.cc (right): https://codereview.chromium.org/536753003/diff/40001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc#newcode243 chrome/browser/ui/webui/extensions/extension_settings_handler.cc:243: management_policy_->MustRemainInstalled(extension, NULL); On 2014/09/18 17:44:07, bjin wrote: > On ...
6 years, 3 months ago (2014-09-19 07:55:52 UTC) #6
binjin
https://codereview.chromium.org/536753003/diff/60001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/536753003/diff/60001/chrome/browser/extensions/extension_management.cc#newcode293 chrome/browser/extensions/extension_management.cc:293: by_id->installation_mode = INSTALLATION_RECOMMENDED; On 2014/09/19 07:55:52, Joao da Silva ...
6 years, 3 months ago (2014-09-19 09:25:28 UTC) #7
Joao da Silva
https://codereview.chromium.org/536753003/diff/60001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/536753003/diff/60001/chrome/browser/extensions/extension_management.cc#newcode293 chrome/browser/extensions/extension_management.cc:293: by_id->installation_mode = INSTALLATION_RECOMMENDED; On 2014/09/19 09:25:28, bjin wrote: > ...
6 years, 3 months ago (2014-09-19 09:27:48 UTC) #8
binjin
Forgot to mention that there are additional changes on extension_settings_handler. https://codereview.chromium.org/536753003/diff/60001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/536753003/diff/60001/chrome/browser/extensions/extension_management.cc#newcode293 ...
6 years, 3 months ago (2014-09-19 10:09:56 UTC) #9
Joao da Silva
lgtm Have a look at PolicyTest.ExtensionInstallForcelist in policy_browsertest.cc. We should add a new test there ...
6 years, 3 months ago (2014-09-19 12:14:04 UTC) #10
Joao da Silva
+pastarmovj to review while I'm away. This CL is ready to go from my side ...
6 years, 3 months ago (2014-09-25 09:43:22 UTC) #12
pastarmovj
lgtm
6 years, 2 months ago (2014-10-02 10:13:44 UTC) #13
pastarmovj
lgtm
6 years, 2 months ago (2014-10-02 10:13:46 UTC) #14
Joao da Silva
What is the status of this CL?
6 years, 2 months ago (2014-10-06 13:19:30 UTC) #15
binjin
On 2014/10/06 13:19:30, Joao da Silva wrote: > What is the status of this CL? ...
6 years, 2 months ago (2014-10-06 13:23:17 UTC) #16
binjin
Finnur, could you have a look at this CL? Please pay attention that I made ...
6 years, 2 months ago (2014-10-06 13:25:41 UTC) #18
Joao da Silva
Can you add a new test in policy_browsertest for this policy?
6 years, 2 months ago (2014-10-06 13:48:11 UTC) #19
binjin
On 2014/10/06 13:48:11, Joao da Silva wrote: > Can you add a new test in ...
6 years, 2 months ago (2014-10-06 14:00:16 UTC) #20
Finnur
https://codereview.chromium.org/536753003/diff/100001/chrome/browser/extensions/extension_management.h File chrome/browser/extensions/extension_management.h (right): https://codereview.chromium.org/536753003/diff/100001/chrome/browser/extensions/extension_management.h#newcode88 chrome/browser/extensions/extension_management.h:88: // instead. I don't get it... GetRecommendedInstallList is like ...
6 years, 2 months ago (2014-10-06 14:01:42 UTC) #21
binjin
https://codereview.chromium.org/536753003/diff/100001/chrome/browser/extensions/extension_management.h File chrome/browser/extensions/extension_management.h (right): https://codereview.chromium.org/536753003/diff/100001/chrome/browser/extensions/extension_management.h#newcode88 chrome/browser/extensions/extension_management.h:88: // instead. On 2014/10/06 14:01:42, Finnur wrote: > I ...
6 years, 2 months ago (2014-10-06 18:48:48 UTC) #22
Finnur
LGTM, with one comment. https://codereview.chromium.org/536753003/diff/160001/chrome/browser/extensions/external_policy_loader.cc File chrome/browser/extensions/external_policy_loader.cc (right): https://codereview.chromium.org/536753003/diff/160001/chrome/browser/extensions/external_policy_loader.cc#newcode46 chrome/browser/extensions/external_policy_loader.cc:46: NOTREACHED(); Leaving out the default ...
6 years, 2 months ago (2014-10-06 19:35:28 UTC) #23
binjin
https://codereview.chromium.org/536753003/diff/160001/chrome/browser/extensions/external_policy_loader.cc File chrome/browser/extensions/external_policy_loader.cc (right): https://codereview.chromium.org/536753003/diff/160001/chrome/browser/extensions/external_policy_loader.cc#newcode46 chrome/browser/extensions/external_policy_loader.cc:46: NOTREACHED(); On 2014/10/06 19:35:27, Finnur wrote: > Leaving out ...
6 years, 2 months ago (2014-10-07 09:29:23 UTC) #24
binjin
Hello Joao, PTAL at the new browser test I added, I also fixed a bug ...
6 years, 2 months ago (2014-10-08 16:05:33 UTC) #25
Joao da Silva
Nice test. lgtm with a little typo https://codereview.chromium.org/536753003/diff/220001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/536753003/diff/220001/chrome/browser/policy/policy_browsertest.cc#newcode1779 chrome/browser/policy/policy_browsertest.cc:1779: // But ...
6 years, 2 months ago (2014-10-08 16:52:30 UTC) #26
Joao da Silva
Seems like the build fails because the ExtensionSettings policy hasn't been added yet. You may ...
6 years, 2 months ago (2014-10-08 16:53:31 UTC) #27
binjin
https://codereview.chromium.org/536753003/diff/220001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/536753003/diff/220001/chrome/browser/policy/policy_browsertest.cc#newcode1779 chrome/browser/policy/policy_browsertest.cc:1779: // But the user are allowed to disable them. ...
6 years, 2 months ago (2014-10-09 12:05:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/536753003/240001
6 years, 2 months ago (2014-10-09 18:10:15 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/17676)
6 years, 2 months ago (2014-10-09 20:11:05 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/536753003/420001
6 years, 2 months ago (2014-10-13 17:59:32 UTC) #34
commit-bot: I haz the power
Committed patchset #14 (id:420001)
6 years, 2 months ago (2014-10-13 19:00:39 UTC) #35
commit-bot: I haz the power
6 years, 2 months ago (2014-10-13 19:01:29 UTC) #36
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/cccacefd3fc1ff73b976144fe1aeb74e47e848e6
Cr-Commit-Position: refs/heads/master@{#299336}

Powered by Google App Engine
This is Rietveld 408576698