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

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

Issue 2374303002: cros: Added a new function to quick unlock api for checking unfinished pins. (Closed)
Patch Set: Changed the function output. Created 4 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 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 prefs::kSystemTimezoneAutomaticDetectionPolicy, 595 prefs::kSystemTimezoneAutomaticDetectionPolicy,
596 base::Value::TYPE_INTEGER }, 596 base::Value::TYPE_INTEGER },
597 #endif 597 #endif
598 598
599 { key::kTaskManagerEndProcessEnabled, 599 { key::kTaskManagerEndProcessEnabled,
600 prefs::kTaskManagerEndProcessEnabled, 600 prefs::kTaskManagerEndProcessEnabled,
601 base::Value::TYPE_BOOLEAN }, 601 base::Value::TYPE_BOOLEAN },
602 602
603 #if defined(OS_CHROMEOS) 603 #if defined(OS_CHROMEOS)
604 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, 604 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN },
605 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength,
606 base::Value::TYPE_INTEGER },
607 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength,
608 base::Value::TYPE_INTEGER },
605 #endif 609 #endif
606 }; 610 };
607 611
608 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 612 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
609 public: 613 public:
610 ForceSafeSearchPolicyHandler() 614 ForceSafeSearchPolicyHandler()
611 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 615 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
612 base::Value::TYPE_BOOLEAN) {} 616 base::Value::TYPE_BOOLEAN) {}
613 ~ForceSafeSearchPolicyHandler() override {} 617 ~ForceSafeSearchPolicyHandler() override {}
614 618
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 885 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
882 handlers->AddHandler( 886 handlers->AddHandler(
883 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); 887 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema));
884 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); 888 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler()));
885 #endif // defined(OS_CHROMEOS) 889 #endif // defined(OS_CHROMEOS)
886 890
887 return handlers; 891 return handlers;
888 } 892 }
889 893
890 } // namespace policy 894 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698