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

Issue 24261010: Allow explicitly whitelisted apps/extensions in public sessions (Closed)

Created:
7 years, 3 months ago by bartfab (slow)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Allow explicitly whitelisted apps/extensions in public sessions This CL adds an extension management policy provider that allows explicitly whitelisted apps/extensions to be installed in public sessions. Right now, QuickOffice and all hosted apps are whitelisted. BUG=296868 TEST=New browser and unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226494 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227641

Patch Set 1 #

Total comments: 22

Patch Set 2 : Comments addressed. #

Total comments: 10

Patch Set 3 : Comments addressed. #

Total comments: 8

Patch Set 4 : Comments addressed. #

Total comments: 2

Patch Set 5 : Added net::QueryIterator. #

Total comments: 4

Patch Set 6 : Comments addressed. #

Total comments: 12

Patch Set 7 : Comments addressed. #

Patch Set 8 : Rebased. #

Patch Set 9 : Added separate management policy for single-app kiosk sessions. #

Patch Set 10 : constness fix. #

Total comments: 2

Patch Set 11 : Comment addressed. #

Patch Set 12 : Fix handing of guest user ID. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+721 lines, -63 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.h View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/device_local_account_management_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +30 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 4 5 7 chunks +220 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 3 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_store.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_system.h View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -3 lines 0 comments Download
M content/public/test/test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +22 lines, -1 line 0 comments Download
M net/base/url_util.h View 1 2 3 4 5 6 2 chunks +26 lines, -0 lines 0 comments Download
M net/base/url_util.cc View 1 2 3 4 5 6 2 chunks +60 lines, -21 lines 0 comments Download
M net/base/url_util_unittest.cc View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
bartfab (slow)
Hi Anthony, Could you please review this CL? Hi Mattias, Could you please review the ...
7 years, 3 months ago (2013-09-23 11:53:47 UTC) #1
Mattias Nissler (ping if slow)
https://chromiumcodereview-hr.appspot.com/24261010/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview-hr.appspot.com/24261010/diff/1/chrome/app/generated_resources.grd#newcode4302 chrome/app/generated_resources.grd:4302: + <message name="IDS_EXTENSION_CANT_INSTALL_IN_PUBLIC_SESSION" desc="Error message when a user tries ...
7 years, 3 months ago (2013-09-23 12:53:29 UTC) #2
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/24261010/diff/1/chrome/app/generated_resources.grd#newcode4302 chrome/app/generated_resources.grd:4302: + <message name="IDS_EXTENSION_CANT_INSTALL_IN_PUBLIC_SESSION" desc="Error message when a user tries ...
7 years, 3 months ago (2013-09-23 17:03:05 UTC) #3
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/24261010/diff/6001/chrome/browser/extensions/extension_system.cc File chrome/browser/extensions/extension_system.cc (right): https://codereview.chromium.org/24261010/diff/6001/chrome/browser/extensions/extension_system.cc#newcode140 chrome/browser/extensions/extension_system.cc:140: #endif // defined(ENABLE_EXTENSIONS) It seems a little unfortunate ...
7 years, 3 months ago (2013-09-24 20:28:59 UTC) #4
Mattias Nissler (ping if slow)
https://chromiumcodereview.appspot.com/24261010/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://chromiumcodereview.appspot.com/24261010/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode121 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:121: class ExtensionInstallSuccessObserver On 2013/09/23 17:03:05, bartfab wrote: > On ...
7 years, 2 months ago (2013-09-25 12:04:08 UTC) #5
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://chromiumcodereview.appspot.com/24261010/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode121 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:121: class ExtensionInstallSuccessObserver On 2013/09/25 12:04:08, Mattias Nissler wrote: > ...
7 years, 2 months ago (2013-09-26 12:39:13 UTC) #6
bartfab (slow)
Hi Scott, Could you please review content/public/test/test_utils*? Hi Jim, Could you please review net/base/url_util*?
7 years, 2 months ago (2013-09-26 12:46:51 UTC) #7
Mattias Nissler (ping if slow)
https://chromiumcodereview.appspot.com/24261010/diff/15001/content/public/test/test_utils.h File content/public/test/test_utils.h (right): https://chromiumcodereview.appspot.com/24261010/diff/15001/content/public/test/test_utils.h#newcode123 content/public/test/test_utils.h:123: typedef base::Callback<bool(const NotificationDetails&)> If we have this, maybe we ...
7 years, 2 months ago (2013-09-26 14:08:09 UTC) #8
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/15001/content/public/test/test_utils.h File content/public/test/test_utils.h (right): https://chromiumcodereview.appspot.com/24261010/diff/15001/content/public/test/test_utils.h#newcode123 content/public/test/test_utils.h:123: typedef base::Callback<bool(const NotificationDetails&)> On 2013/09/26 14:08:10, Mattias Nissler wrote: ...
7 years, 2 months ago (2013-09-26 14:43:04 UTC) #9
sky
LGTM
7 years, 2 months ago (2013-09-26 20:22:50 UTC) #10
Mattias Nissler (ping if slow)
policy bits LGTM
7 years, 2 months ago (2013-09-27 15:01:41 UTC) #11
bartfab (slow)
Hi Jim, Friendly review ping.
7 years, 2 months ago (2013-09-30 09:56:32 UTC) #12
jar (doing other things)
https://chromiumcodereview.appspot.com/24261010/diff/34001/net/base/url_util.h File net/base/url_util.h (right): https://chromiumcodereview.appspot.com/24261010/diff/34001/net/base/url_util.h#newcode59 net/base/url_util.h:59: NET_EXPORT bool ParseQuery(const GURL& url, KeyValueMap* key_values); Did you ...
7 years, 2 months ago (2013-09-30 16:00:26 UTC) #13
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/34001/net/base/url_util.h File net/base/url_util.h (right): https://chromiumcodereview.appspot.com/24261010/diff/34001/net/base/url_util.h#newcode59 net/base/url_util.h:59: NET_EXPORT bool ParseQuery(const GURL& url, KeyValueMap* key_values); On 2013/09/30 ...
7 years, 2 months ago (2013-09-30 17:00:13 UTC) #14
jar (doing other things)
https://chromiumcodereview.appspot.com/24261010/diff/46001/net/base/url_util.cc File net/base/url_util.cc (right): https://chromiumcodereview.appspot.com/24261010/diff/46001/net/base/url_util.cc#newcode74 net/base/url_util.cc:74: at_end_(!url.is_valid()) { nit: when initializer list can't fit on ...
7 years, 2 months ago (2013-09-30 17:25:35 UTC) #15
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/46001/net/base/url_util.cc File net/base/url_util.cc (right): https://chromiumcodereview.appspot.com/24261010/diff/46001/net/base/url_util.cc#newcode74 net/base/url_util.cc:74: at_end_(!url.is_valid()) { On 2013/09/30 17:25:36, jar wrote: > nit: ...
7 years, 2 months ago (2013-09-30 17:50:24 UTC) #16
jar (doing other things)
https://chromiumcodereview.appspot.com/24261010/diff/52001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): https://chromiumcodereview.appspot.com/24261010/diff/52001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc#newcode46 chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc:46: const extensions::Extension* extension, nit: Curious question: Why isn't this ...
7 years, 2 months ago (2013-10-01 02:11:17 UTC) #17
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/52001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): https://chromiumcodereview.appspot.com/24261010/diff/52001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc#newcode46 chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc:46: const extensions::Extension* extension, On 2013/10/01 02:11:17, jar wrote: > ...
7 years, 2 months ago (2013-10-01 10:03:40 UTC) #18
jar (doing other things)
Patch set 7, net/base/* LGTM https://chromiumcodereview.appspot.com/24261010/diff/52001/net/base/url_util.h File net/base/url_util.h (right): https://chromiumcodereview.appspot.com/24261010/diff/52001/net/base/url_util.h#newcode57 net/base/url_util.h:57: const std::string& GetUnescapedValue() const; ...
7 years, 2 months ago (2013-10-01 21:58:36 UTC) #19
bartfab (slow)
https://chromiumcodereview.appspot.com/24261010/diff/52001/net/base/url_util.h File net/base/url_util.h (right): https://chromiumcodereview.appspot.com/24261010/diff/52001/net/base/url_util.h#newcode57 net/base/url_util.h:57: const std::string& GetUnescapedValue() const; On 2013/10/01 21:58:36, jar wrote: ...
7 years, 2 months ago (2013-10-02 08:41:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/24261010/73001
7 years, 2 months ago (2013-10-02 09:05:28 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=161176
7 years, 2 months ago (2013-10-02 12:30:09 UTC) #22
bartfab (slow)
Hi Julian, Could you take a look at the changes since patchset 8 please? The ...
7 years, 2 months ago (2013-10-02 14:26:45 UTC) #23
pastarmovj
lgtm with one comment. https://codereview.chromium.org/24261010/diff/109001/chrome/browser/chromeos/policy/device_local_account.cc File chrome/browser/chromeos/policy/device_local_account.cc (right): https://codereview.chromium.org/24261010/diff/109001/chrome/browser/chromeos/policy/device_local_account.cc#newcode81 chrome/browser/chromeos/policy/device_local_account.cc:81: NOTREACHED(); I think it will ...
7 years, 2 months ago (2013-10-02 14:44:49 UTC) #24
bartfab (slow)
https://codereview.chromium.org/24261010/diff/109001/chrome/browser/chromeos/policy/device_local_account.cc File chrome/browser/chromeos/policy/device_local_account.cc (right): https://codereview.chromium.org/24261010/diff/109001/chrome/browser/chromeos/policy/device_local_account.cc#newcode81 chrome/browser/chromeos/policy/device_local_account.cc:81: NOTREACHED(); On 2013/10/02 14:44:50, pastarmovj wrote: > I think ...
7 years, 2 months ago (2013-10-02 14:48:34 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/24261010/122002
7 years, 2 months ago (2013-10-02 14:48:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/24261010/122002
7 years, 2 months ago (2013-10-02 16:47:21 UTC) #27
commit-bot: I haz the power
Change committed as 226494
7 years, 2 months ago (2013-10-02 17:47:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/24261010/145001
7 years, 2 months ago (2013-10-08 14:19:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/24261010/145001
7 years, 2 months ago (2013-10-09 02:08:18 UTC) #30
commit-bot: I haz the power
7 years, 2 months ago (2013-10-09 02:50:02 UTC) #31
Message was sent while issue was closed.
Change committed as 227641

Powered by Google App Engine
This is Rietveld 408576698