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

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: Fixed patch set 6 errors. 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 prefs::kSystemTimezoneAutomaticDetectionPolicy, 599 prefs::kSystemTimezoneAutomaticDetectionPolicy,
600 base::Value::TYPE_INTEGER }, 600 base::Value::TYPE_INTEGER },
601 #endif 601 #endif
602 602
603 { key::kTaskManagerEndProcessEnabled, 603 { key::kTaskManagerEndProcessEnabled,
604 prefs::kTaskManagerEndProcessEnabled, 604 prefs::kTaskManagerEndProcessEnabled,
605 base::Value::TYPE_BOOLEAN }, 605 base::Value::TYPE_BOOLEAN },
606 606
607 #if defined(OS_CHROMEOS) 607 #if defined(OS_CHROMEOS)
608 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, 608 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN },
609 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength,
610 base::Value::TYPE_INTEGER },
611 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength,
612 base::Value::TYPE_INTEGER },
613 { key::kPinUnlockAllowWeakPins, prefs::kPinUnlockAllowWeakPins,
614 base::Value::TYPE_BOOLEAN },
609 #endif 615 #endif
610 }; 616 };
611 617
612 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 618 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
613 public: 619 public:
614 ForceSafeSearchPolicyHandler() 620 ForceSafeSearchPolicyHandler()
615 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 621 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
616 base::Value::TYPE_BOOLEAN) {} 622 base::Value::TYPE_BOOLEAN) {}
617 ~ForceSafeSearchPolicyHandler() override {} 623 ~ForceSafeSearchPolicyHandler() override {}
618 624
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 935 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
930 handlers->AddHandler( 936 handlers->AddHandler(
931 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); 937 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema));
932 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); 938 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler()));
933 #endif // defined(OS_CHROMEOS) 939 #endif // defined(OS_CHROMEOS)
934 940
935 return handlers; 941 return handlers;
936 } 942 }
937 943
938 } // namespace policy 944 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698