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

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

Issue 16658015: Add device policies to control accessibility settings on the login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copy&paste mistake found by clang. Created 7 years, 6 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.cc
diff --git a/chrome/browser/policy/configuration_policy_handler_list.cc b/chrome/browser/policy/configuration_policy_handler_list.cc
index 2baabf1a67991c32fd97af79c00dd9da1448ecde..22f74aa542f2e74723f46a74232816b50d8546c8 100644
--- a/chrome/browser/policy/configuration_policy_handler_list.cc
+++ b/chrome/browser/policy/configuration_policy_handler_list.cc
@@ -18,6 +18,7 @@
#include "policy/policy_constants.h"
#if defined(OS_CHROMEOS)
+#include "ash/magnifier/magnifier_constants.h"
#include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h"
#endif // defined(OS_CHROMEOS)
@@ -25,6 +26,8 @@ namespace policy {
namespace {
+const char kNoPref[] = "";
Mattias Nissler (ping if slow) 2013/06/12 13:55:16 Why not just NULL?
bartfab (slow) 2013/06/12 18:57:49 Done.
+
// Maps a policy type to a preference path, and to the expected value type.
// This is the entry type of |kSimplePolicyMap| below.
struct PolicyToPreferenceMapEntry {
@@ -383,6 +386,15 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = {
{ key::kHighContrastEnabled,
prefs::kHighContrastEnabled,
Value::TYPE_BOOLEAN },
+ { key::kLoginScreenDefaultLargeCursorEnabled,
+ kNoPref,
+ Value::TYPE_BOOLEAN },
+ { key::kLoginScreenDefaultSpokenFeedbackEnabled,
+ kNoPref,
+ Value::TYPE_BOOLEAN },
+ { key::kLoginScreenDefaultHighContrastEnabled,
+ kNoPref,
+ Value::TYPE_BOOLEAN },
{ key::kRebootAfterUpdate,
prefs::kRebootAfterUpdate,
Value::TYPE_BOOLEAN },
@@ -538,6 +550,10 @@ ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList() {
handlers_.push_back(new IntRangePolicyHandler(key::kUptimeLimit,
prefs::kUptimeLimit,
3600, INT_MAX, true));
+ handlers_.push_back(
+ new IntRangePolicyHandler(key::kLoginScreenDefaultScreenMagnifierType,
+ kNoPref,
+ 0, ash::MAGNIFIER_FULL, false));
#endif // defined(OS_CHROMEOS)
}

Powered by Google App Engine
This is Rietveld 408576698