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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_store.cc

Issue 24261010: Allow explicitly whitelisted apps/extensions in public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix handing of guest user ID. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/device_local_account_policy_store.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
index f3914cf8cd5ab754818ded0f42c5bdc9b77f4e19..898733a13498d9f009d865802e45c7049ce241e8 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
@@ -86,7 +86,6 @@ void DeviceLocalAccountPolicyStore::UpdatePolicy(
base::Value::CreateIntegerValue(
chromeos::PowerPolicyController::ACTION_STOP_SESSION),
NULL);
-
// Force the |ShelfAutoHideBehavior| policy to |Never|, ensuring that the ash
// shelf does not auto-hide.
policy_map_.Set(key::kShelfAutoHideBehavior,
@@ -108,16 +107,6 @@ void DeviceLocalAccountPolicyStore::UpdatePolicy(
POLICY_SCOPE_USER,
Value::CreateBooleanValue(false),
NULL);
- // Restrict device-local accounts to hosted apps for now (i.e. no extensions,
- // packaged apps etc.) for security/privacy reasons (i.e. we'd like to
- // prevent the admin from stealing private information from random people).
- scoped_ptr<base::ListValue> allowed_extension_types(new base::ListValue());
- allowed_extension_types->AppendString("hosted_app");
- policy_map_.Set(key::kExtensionAllowedTypes,
- POLICY_LEVEL_MANDATORY,
- POLICY_SCOPE_USER,
- allowed_extension_types.release(),
- NULL);
status_ = STATUS_OK;
NotifyStoreLoaded();

Powered by Google App Engine
This is Rietveld 408576698