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

Unified Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 426063005: Allow recommended locales to be set for public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/policy/configuration_policy_handler_list_factory.cc
diff --git a/chrome/browser/policy/configuration_policy_handler_list_factory.cc b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
index ae91b0f435161f5e870c634cefc8fb1d6edbf9bb..78fbafa19943ca4e28fd0484904a7dff57edef18 100644
--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
@@ -784,6 +784,14 @@ scoped_ptr<ConfigurationPolicyHandlerList> BuildHandlerList(
new ExternalDataPolicyHandler(key::kUserAvatarImage)));
handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
new ExternalDataPolicyHandler(key::kWallpaperImage)));
+ handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
pneubeck (no reviews) 2014/07/30 15:23:19 Does the empty list need some special handling at
bartfab (slow) 2014/08/05 17:16:24 An empty list is permissible. It means the same th
+ new SimpleSchemaValidatingPolicyHandler(
+ key::kSessionLocales,
+ NULL,
+ chrome_schema,
+ SCHEMA_STRICT,
+ SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
+ SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
#endif // defined(OS_CHROMEOS)
return handlers.Pass();

Powered by Google App Engine
This is Rietveld 408576698