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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 2387253002: cros: Added policies for screen unlock. (Closed)
Patch Set: Fixed patch set 12 errors. Created 4 years, 1 month 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
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 <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 prefs::kSystemTimezoneAutomaticDetectionPolicy, 596 prefs::kSystemTimezoneAutomaticDetectionPolicy,
597 base::Value::TYPE_INTEGER }, 597 base::Value::TYPE_INTEGER },
598 #endif 598 #endif
599 599
600 { key::kTaskManagerEndProcessEnabled, 600 { key::kTaskManagerEndProcessEnabled,
601 prefs::kTaskManagerEndProcessEnabled, 601 prefs::kTaskManagerEndProcessEnabled,
602 base::Value::TYPE_BOOLEAN }, 602 base::Value::TYPE_BOOLEAN },
603 603
604 #if defined(OS_CHROMEOS) 604 #if defined(OS_CHROMEOS)
605 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, 605 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN },
606
607 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist,
608 base::Value::TYPE_LIST },
609 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout,
610 base::Value::TYPE_INTEGER },
606 #endif 611 #endif
607 }; 612 };
608 613
609 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 614 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
610 public: 615 public:
611 ForceSafeSearchPolicyHandler() 616 ForceSafeSearchPolicyHandler()
612 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 617 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
613 base::Value::TYPE_BOOLEAN) {} 618 base::Value::TYPE_BOOLEAN) {}
614 ~ForceSafeSearchPolicyHandler() override {} 619 ~ForceSafeSearchPolicyHandler() override {}
615 620
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 #endif // defined(OS_CHROMEOS) 918 #endif // defined(OS_CHROMEOS)
914 919
915 #if defined(ENABLE_PLUGINS) 920 #if defined(ENABLE_PLUGINS)
916 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 921 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
917 #endif // defined(ENABLE_PLUGINS) 922 #endif // defined(ENABLE_PLUGINS)
918 923
919 return handlers; 924 return handlers;
920 } 925 }
921 926
922 } // namespace policy 927 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698