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

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

Issue 1861383002: Add TaskManagerEndProcessEnabled policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update supported_on to 52 Created 4 years, 8 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 #include <utility> 9 #include <utility>
10 10
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 { key::kSuppressUnsupportedOSWarning, 552 { key::kSuppressUnsupportedOSWarning,
553 prefs::kSuppressUnsupportedOSWarning, 553 prefs::kSuppressUnsupportedOSWarning,
554 base::Value::TYPE_BOOLEAN }, 554 base::Value::TYPE_BOOLEAN },
555 #endif // !OS_ANDROID 555 #endif // !OS_ANDROID
556 556
557 #if defined(OS_CHROMEOS) 557 #if defined(OS_CHROMEOS)
558 { key::kSystemTimezoneAutomaticDetection, 558 { key::kSystemTimezoneAutomaticDetection,
559 prefs::kSystemTimezoneAutomaticDetectionPolicy, 559 prefs::kSystemTimezoneAutomaticDetectionPolicy,
560 base::Value::TYPE_INTEGER }, 560 base::Value::TYPE_INTEGER },
561 #endif 561 #endif
562
563 { key::kTaskManagerEndProcessEnabled,
564 prefs::kTaskManagerEndProcessEnabled,
565 base::Value::TYPE_BOOLEAN },
562 }; 566 };
563 567
564 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 568 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
565 public: 569 public:
566 ForceSafeSearchPolicyHandler() 570 ForceSafeSearchPolicyHandler()
567 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 571 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
568 base::Value::TYPE_BOOLEAN) {} 572 base::Value::TYPE_BOOLEAN) {}
569 ~ForceSafeSearchPolicyHandler() override {} 573 ~ForceSafeSearchPolicyHandler() override {}
570 574
571 // ConfigurationPolicyHandler implementation: 575 // ConfigurationPolicyHandler implementation:
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 840 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
837 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 841 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
838 handlers->AddHandler(make_scoped_ptr( 842 handlers->AddHandler(make_scoped_ptr(
839 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 843 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
840 #endif // defined(OS_CHROMEOS) 844 #endif // defined(OS_CHROMEOS)
841 845
842 return handlers; 846 return handlers;
843 } 847 }
844 848
845 } // namespace policy 849 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/policy_browsertest.cc » ('j') | components/policy/resources/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698