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

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

Issue 2588423005: Add policies for controlling the roaming profile status and location. (Closed)
Patch Set: Created 4 years 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "components/policy/core/common/policy_details.h" 43 #include "components/policy/core/common/policy_details.h"
44 #include "components/policy/core/common/policy_map.h" 44 #include "components/policy/core/common/policy_map.h"
45 #include "components/policy/core/common/policy_pref_names.h" 45 #include "components/policy/core/common/policy_pref_names.h"
46 #include "components/policy/core/common/schema.h" 46 #include "components/policy/core/common/schema.h"
47 #include "components/policy/policy_constants.h" 47 #include "components/policy/policy_constants.h"
48 #include "components/prefs/pref_value_map.h" 48 #include "components/prefs/pref_value_map.h"
49 #include "components/search_engines/default_search_policy_handler.h" 49 #include "components/search_engines/default_search_policy_handler.h"
50 #include "components/signin/core/common/signin_pref_names.h" 50 #include "components/signin/core/common/signin_pref_names.h"
51 #include "components/spellcheck/spellcheck_build_features.h" 51 #include "components/spellcheck/spellcheck_build_features.h"
52 #include "components/ssl_config/ssl_config_prefs.h" 52 #include "components/ssl_config/ssl_config_prefs.h"
53 #include "components/sync/base/pref_names.h"
53 #include "components/sync/driver/sync_policy_handler.h" 54 #include "components/sync/driver/sync_policy_handler.h"
54 #include "components/translate/core/common/translate_pref_names.h" 55 #include "components/translate/core/common/translate_pref_names.h"
55 #include "components/variations/pref_names.h" 56 #include "components/variations/pref_names.h"
56 #include "extensions/features/features.h" 57 #include "extensions/features/features.h"
57 #include "media/media_features.h" 58 #include "media/media_features.h"
58 #include "ppapi/features/features.h" 59 #include "ppapi/features/features.h"
59 60
60 #if BUILDFLAG(ANDROID_JAVA_UI) 61 #if BUILDFLAG(ANDROID_JAVA_UI)
61 #include "chrome/browser/search/contextual_search_policy_handler_android.h" 62 #include "chrome/browser/search/contextual_search_policy_handler_android.h"
62 #endif 63 #endif
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 604
604 { key::kTaskManagerEndProcessEnabled, 605 { key::kTaskManagerEndProcessEnabled,
605 prefs::kTaskManagerEndProcessEnabled, 606 prefs::kTaskManagerEndProcessEnabled,
606 base::Value::Type::BOOLEAN }, 607 base::Value::Type::BOOLEAN },
607 608
608 #if defined(OS_CHROMEOS) 609 #if defined(OS_CHROMEOS)
609 { key::kNetworkThrottlingEnabled, 610 { key::kNetworkThrottlingEnabled,
610 prefs::kNetworkThrottlingEnabled, 611 prefs::kNetworkThrottlingEnabled,
611 base::Value::Type::DICTIONARY }, 612 base::Value::Type::DICTIONARY },
612 613
613 { key::kAllowScreenLock, prefs::kAllowScreenLock, 614 { key::kAllowScreenLock,
615 prefs::kAllowScreenLock,
614 base::Value::Type::BOOLEAN }, 616 base::Value::Type::BOOLEAN },
615 617
616 { key::kQuickUnlockModeWhitelist, prefs::kQuickUnlockModeWhitelist, 618 { key::kQuickUnlockModeWhitelist,
619 prefs::kQuickUnlockModeWhitelist,
617 base::Value::Type::LIST }, 620 base::Value::Type::LIST },
618 { key::kQuickUnlockTimeout, prefs::kQuickUnlockTimeout, 621 { key::kQuickUnlockTimeout,
622 prefs::kQuickUnlockTimeout,
619 base::Value::Type::INTEGER }, 623 base::Value::Type::INTEGER },
620 { key::kPinUnlockMinimumLength, prefs::kPinUnlockMinimumLength, 624 { key::kPinUnlockMinimumLength,
625 prefs::kPinUnlockMinimumLength,
621 base::Value::Type::INTEGER }, 626 base::Value::Type::INTEGER },
622 { key::kPinUnlockMaximumLength, prefs::kPinUnlockMaximumLength, 627 { key::kPinUnlockMaximumLength,
628 prefs::kPinUnlockMaximumLength,
623 base::Value::Type::INTEGER }, 629 base::Value::Type::INTEGER },
624 { key::kPinUnlockWeakPinsAllowed, prefs::kPinUnlockWeakPinsAllowed, 630 { key::kPinUnlockWeakPinsAllowed,
631 prefs::kPinUnlockWeakPinsAllowed,
625 base::Value::Type::BOOLEAN }, 632 base::Value::Type::BOOLEAN },
626 #endif 633 #endif
634
635 { key::kRoamingProfileSupportEnabled,
636 syncer::prefs::kEnableLocalSyncBackend,
637 base::Value::Type::BOOLEAN },
638 { key::kRoamingProfileLocation,
639 syncer::prefs::kLocalSyncBackendDir,
640 base::Value::Type::STRING },
627 }; 641 };
628 642
629 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 643 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
630 public: 644 public:
631 ForceSafeSearchPolicyHandler() 645 ForceSafeSearchPolicyHandler()
632 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 646 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
633 base::Value::Type::BOOLEAN) {} 647 base::Value::Type::BOOLEAN) {}
634 ~ForceSafeSearchPolicyHandler() override {} 648 ~ForceSafeSearchPolicyHandler() override {}
635 649
636 // ConfigurationPolicyHandler implementation: 650 // ConfigurationPolicyHandler implementation:
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 #endif // defined(OS_CHROMEOS) 1000 #endif // defined(OS_CHROMEOS)
987 1001
988 #if BUILDFLAG(ENABLE_PLUGINS) 1002 #if BUILDFLAG(ENABLE_PLUGINS)
989 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1003 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
990 #endif // BUILDFLAG(ENABLE_PLUGINS) 1004 #endif // BUILDFLAG(ENABLE_PLUGINS)
991 1005
992 return handlers; 1006 return handlers;
993 } 1007 }
994 1008
995 } // namespace policy 1009 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/policy/policy_test_cases.json » ('j') | components/policy/resources/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698