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

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

Issue 2364703002: Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add network bandwidth throttling as an enterprise policy 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 #if defined(OS_CHROMEOS) 595 #if defined(OS_CHROMEOS)
596 { key::kSystemTimezoneAutomaticDetection, 596 { key::kSystemTimezoneAutomaticDetection,
597 prefs::kSystemTimezoneAutomaticDetectionPolicy, 597 prefs::kSystemTimezoneAutomaticDetectionPolicy,
598 base::Value::TYPE_INTEGER }, 598 base::Value::TYPE_INTEGER },
599 #endif 599 #endif
600 600
601 { key::kTaskManagerEndProcessEnabled, 601 { key::kTaskManagerEndProcessEnabled,
602 prefs::kTaskManagerEndProcessEnabled, 602 prefs::kTaskManagerEndProcessEnabled,
603 base::Value::TYPE_BOOLEAN }, 603 base::Value::TYPE_BOOLEAN },
604 604
605 { key::kNetworkThrottlingEnabled,
606 prefs::kNetworkThrottlingEnabled,
607 base::Value::TYPE_DICTIONARY },
608
605 #if defined(OS_CHROMEOS) 609 #if defined(OS_CHROMEOS)
606 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN }, 610 { key::kAllowScreenLock, prefs::kAllowScreenLock, base::Value::TYPE_BOOLEAN },
607 #endif 611 #endif
608 }; 612 };
609 613
610 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 614 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
611 public: 615 public:
612 ForceSafeSearchPolicyHandler() 616 ForceSafeSearchPolicyHandler()
613 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 617 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
614 base::Value::TYPE_BOOLEAN) {} 618 base::Value::TYPE_BOOLEAN) {}
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 #endif // defined(OS_CHROMEOS) 935 #endif // defined(OS_CHROMEOS)
932 936
933 #if defined(ENABLE_PLUGINS) 937 #if defined(ENABLE_PLUGINS)
934 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 938 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
935 #endif // defined(ENABLE_PLUGINS) 939 #endif // defined(ENABLE_PLUGINS)
936 940
937 return handlers; 941 return handlers;
938 } 942 }
939 943
940 } // namespace policy 944 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698