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

Side by Side 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: Fix buffer overflow in test. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 new PowerManagementIdleSettingsPolicyHandler(chrome_schema))))); 780 new PowerManagementIdleSettingsPolicyHandler(chrome_schema)))));
781 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 781 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
782 new LegacyPoliciesDeprecatingPolicyHandler( 782 new LegacyPoliciesDeprecatingPolicyHandler(
783 screen_lock_legacy_policies.Pass(), 783 screen_lock_legacy_policies.Pass(),
784 make_scoped_ptr<SchemaValidatingPolicyHandler>( 784 make_scoped_ptr<SchemaValidatingPolicyHandler>(
785 new ScreenLockDelayPolicyHandler(chrome_schema))))); 785 new ScreenLockDelayPolicyHandler(chrome_schema)))));
786 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 786 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
787 new ExternalDataPolicyHandler(key::kUserAvatarImage))); 787 new ExternalDataPolicyHandler(key::kUserAvatarImage)));
788 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 788 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
789 new ExternalDataPolicyHandler(key::kWallpaperImage))); 789 new ExternalDataPolicyHandler(key::kWallpaperImage)));
790 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
791 new SimpleSchemaValidatingPolicyHandler(
792 key::kSessionLocales,
793 NULL,
794 chrome_schema,
795 SCHEMA_STRICT,
796 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
797 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
790 #endif // defined(OS_CHROMEOS) 798 #endif // defined(OS_CHROMEOS)
791 799
792 return handlers.Pass(); 800 return handlers.Pass();
793 } 801 }
794 802
795 } // namespace policy 803 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698