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

Issue 8477005: Add policies to specify an enterprise web store. (Closed)

Created:
9 years, 1 month ago by Patrick Dubroy
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Add policies to specify an enterprise web store. Admins can specify the URL, name, and icon to be used for the enterprise web store. The app itself is implemented as a component extension, with some of the manifest values being specified by policy. BUG=88464 TEST=New ComponentLoaderTest class added to unit_tests. Additional manual testing: set "EnterpriseWebStoreURL" policy to a valid URL and start up Chrome. Verify that there is an app on the new tab page that links to the specified URL. If possible, try installing an extension from somewhere on that URL, and ensure that no warning is shown before showing the permission dialog. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110698

Patch Set 1 #

Total comments: 1

Patch Set 2 : Full support for enterprise web store policies. #

Patch Set 3 : Rebase, and fix a couple errors in certain build configs. #

Patch Set 4 : Add tests for ComponentLoader. #

Total comments: 6

Patch Set 5 : Address aa's comments. #

Patch Set 6 : Rename ClearAllRegistered - not just for testing. #

Patch Set 7 : Rebased. #

Patch Set 8 : Fix compile error on Windows. #

Patch Set 9 : Fix another compile error. #

Patch Set 10 : Fix broken test on ChromeOS config. #

Patch Set 11 : Sigh. #

Patch Set 12 : Finally. #

Total comments: 2

Patch Set 13 : Improve policy documentation. #

Patch Set 14 : Rebasse. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -183 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/accessibility_util.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/component_loader.h View 1 2 3 4 5 6 7 8 9 2 chunks +51 lines, -19 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 8 9 6 chunks +170 lines, -116 lines 1 comment Download
A chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +252 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -4 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 +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_frontend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/settings/settings_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_service.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_service.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/intents/web_intents_registry_unittest.cc View 1 2 3 4 chunks +5 lines, -31 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/enterprise_webstore_app/manifest.json View 1 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Patrick Dubroy
Here's another crack at the enterprise web store thing, taking the approach suggested by Aaron. ...
9 years, 1 month ago (2011-11-04 18:11:22 UTC) #1
Aaron Boodman
+yoz This is a step closer. Note that ComponentLoader does not currently have a Profile* ...
9 years, 1 month ago (2011-11-06 23:05:40 UTC) #2
Yoyo Zhou
On 2011/11/06 23:05:40, Aaron Boodman wrote: > +yoz > > This is a step closer. ...
9 years, 1 month ago (2011-11-07 17:06:38 UTC) #3
Patrick Dubroy
Ok, this latest patch actually implements the policies properly. I also did some refactoring in ...
9 years, 1 month ago (2011-11-07 19:21:07 UTC) #4
Aaron Boodman
I like this approach too. Instead of digging prefs out of ExtensionService, can you make ...
9 years, 1 month ago (2011-11-08 20:11:19 UTC) #5
Patrick Dubroy
On 2011/11/08 20:11:19, Aaron Boodman wrote: > I like this approach too. > > Instead ...
9 years, 1 month ago (2011-11-08 20:33:13 UTC) #6
Patrick Dubroy
I've added a new ComponentLoaderTest class to unit_tests. aa + yoz, can you please review?
9 years, 1 month ago (2011-11-10 17:30:07 UTC) #7
Patrick Dubroy
Ping.
9 years, 1 month ago (2011-11-14 22:13:07 UTC) #8
Aaron Boodman
http://codereview.chromium.org/8477005/diff/10001/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): http://codereview.chromium.org/8477005/diff/10001/chrome/browser/extensions/component_loader.h#newcode66 chrome/browser/extensions/component_loader.h:66: FRIEND_TEST(ComponentLoaderTest, EnterpriseWebStore); Hate friend. Can you modify the public ...
9 years, 1 month ago (2011-11-15 17:34:47 UTC) #9
Patrick Dubroy
http://codereview.chromium.org/8477005/diff/10001/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): http://codereview.chromium.org/8477005/diff/10001/chrome/browser/extensions/component_loader.h#newcode66 chrome/browser/extensions/component_loader.h:66: FRIEND_TEST(ComponentLoaderTest, EnterpriseWebStore); On 2011/11/15 17:34:47, Aaron Boodman wrote: > ...
9 years, 1 month ago (2011-11-15 19:19:16 UTC) #10
Aaron Boodman
On 2011/11/15 19:19:16, dubroy wrote: > http://codereview.chromium.org/8477005/diff/10001/chrome/browser/extensions/component_loader.h > File chrome/browser/extensions/component_loader.h (right): > > http://codereview.chromium.org/8477005/diff/10001/chrome/browser/extensions/component_loader.h#newcode66 > ...
9 years, 1 month ago (2011-11-15 22:22:56 UTC) #11
Aaron Boodman
LGTM, but please fix the "friends"s before landing
9 years, 1 month ago (2011-11-15 22:23:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/8477005/23001
9 years, 1 month ago (2011-11-18 08:42:49 UTC) #13
commit-bot: I haz the power
Presubmit check for 8477005-23001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-18 08:43:40 UTC) #14
Mattias Nissler (ping if slow)
LGTM if you improve the policy documentation strings :) http://codereview.chromium.org/8477005/diff/23001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/8477005/diff/23001/chrome/app/policy/policy_templates.json#newcode2080 chrome/app/policy/policy_templates.json:2080: ...
9 years, 1 month ago (2011-11-18 09:38:43 UTC) #15
Patrick Dubroy
http://codereview.chromium.org/8477005/diff/23001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/8477005/diff/23001/chrome/app/policy/policy_templates.json#newcode2080 chrome/app/policy/policy_templates.json:2080: 'desc': '''Enables an enterprise web store, where users can ...
9 years, 1 month ago (2011-11-18 09:59:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/8477005/24024
9 years, 1 month ago (2011-11-18 09:59:48 UTC) #17
commit-bot: I haz the power
Can't apply patch for file chrome/app/policy/policy_templates.json. While running patch -p1 --forward --force; patching file chrome/app/policy/policy_templates.json ...
9 years, 1 month ago (2011-11-18 11:01:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dubroy@chromium.org/8477005/33001
9 years, 1 month ago (2011-11-18 13:00:45 UTC) #19
commit-bot: I haz the power
Try job failure for 8477005-33001 (retry) on win_rel for step "browser_tests" (clobber build). It's a ...
9 years, 1 month ago (2011-11-18 14:20:56 UTC) #20
Jeffrey Yasskin
7 years, 7 months ago (2013-05-14 02:26:32 UTC) #21
Message was sent while issue was closed.
FYI

https://codereview.chromium.org/8477005/diff/33001/chrome/browser/extensions/...
File chrome/browser/extensions/component_loader.cc (right):

https://codereview.chromium.org/8477005/diff/33001/chrome/browser/extensions/...
chrome/browser/extensions/component_loader.cc:178: Remove(path);
This Remove() call isn't working anymore, at least in tests. The
component_extensions_ vector gets paths as absolute paths, so they're never
equal to the relative path "enterprise_web_store".

Powered by Google App Engine
This is Rietveld 408576698