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

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

Issue 2912353003: Add a path parsing policy handler for the RoamingProfileLocation policy. (Closed)
Patch Set: Make all code not compile on Android at all. Created 3 years, 6 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/policy/local_sync_policy_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "chrome/browser/policy/default_geolocation_policy_handler.h" 71 #include "chrome/browser/policy/default_geolocation_policy_handler.h"
72 #include "chromeos/chromeos_pref_names.h" 72 #include "chromeos/chromeos_pref_names.h"
73 #include "chromeos/dbus/power_policy_controller.h" 73 #include "chromeos/dbus/power_policy_controller.h"
74 #include "components/drive/drive_pref_names.h" 74 #include "components/drive/drive_pref_names.h"
75 #include "components/user_manager/user.h" 75 #include "components/user_manager/user.h"
76 #include "components/user_manager/user_manager.h" 76 #include "components/user_manager/user_manager.h"
77 #endif 77 #endif
78 78
79 #if !defined(OS_ANDROID) 79 #if !defined(OS_ANDROID)
80 #include "chrome/browser/download/download_dir_policy_handler.h" 80 #include "chrome/browser/download/download_dir_policy_handler.h"
81 #include "chrome/browser/policy/local_sync_policy_handler.h"
81 #endif 82 #endif
82 83
83 #if BUILDFLAG(ENABLE_EXTENSIONS) 84 #if BUILDFLAG(ENABLE_EXTENSIONS)
84 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle r.h" 85 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle r.h"
85 #include "chrome/browser/extensions/extension_management_constants.h" 86 #include "chrome/browser/extensions/extension_management_constants.h"
86 #include "chrome/browser/extensions/policy_handlers.h" 87 #include "chrome/browser/extensions/policy_handlers.h"
87 #include "extensions/browser/pref_names.h" 88 #include "extensions/browser/pref_names.h"
88 #include "extensions/common/manifest.h" 89 #include "extensions/common/manifest.h"
89 #endif 90 #endif
90 91
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 prefs::kPinUnlockMaximumLength, 663 prefs::kPinUnlockMaximumLength,
663 base::Value::Type::INTEGER }, 664 base::Value::Type::INTEGER },
664 { key::kPinUnlockWeakPinsAllowed, 665 { key::kPinUnlockWeakPinsAllowed,
665 prefs::kPinUnlockWeakPinsAllowed, 666 prefs::kPinUnlockWeakPinsAllowed,
666 base::Value::Type::BOOLEAN }, 667 base::Value::Type::BOOLEAN },
667 #endif 668 #endif
668 669
669 { key::kRoamingProfileSupportEnabled, 670 { key::kRoamingProfileSupportEnabled,
670 syncer::prefs::kEnableLocalSyncBackend, 671 syncer::prefs::kEnableLocalSyncBackend,
671 base::Value::Type::BOOLEAN }, 672 base::Value::Type::BOOLEAN },
672 { key::kRoamingProfileLocation,
673 syncer::prefs::kLocalSyncBackendDir,
674 base::Value::Type::STRING },
675 673
676 { key::kNetworkTimeQueriesEnabled, 674 { key::kNetworkTimeQueriesEnabled,
677 network_time::prefs::kNetworkTimeQueriesEnabled, 675 network_time::prefs::kNetworkTimeQueriesEnabled,
678 base::Value::Type::BOOLEAN }, 676 base::Value::Type::BOOLEAN },
679 }; 677 };
680 // clang-format on 678 // clang-format on
681 679
682 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 680 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
683 public: 681 public:
684 ForceSafeSearchPolicyHandler() 682 ForceSafeSearchPolicyHandler()
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 extensions::pref_names::kNativeMessagingWhitelist, false)); 913 extensions::pref_names::kNativeMessagingWhitelist, false));
916 handlers->AddHandler( 914 handlers->AddHandler(
917 base::MakeUnique<extensions::NativeMessagingHostListPolicyHandler>( 915 base::MakeUnique<extensions::NativeMessagingHostListPolicyHandler>(
918 key::kNativeMessagingBlacklist, 916 key::kNativeMessagingBlacklist,
919 extensions::pref_names::kNativeMessagingBlacklist, true)); 917 extensions::pref_names::kNativeMessagingBlacklist, true));
920 handlers->AddHandler(base::MakeUnique<SupervisedUserCreationPolicyHandler>()); 918 handlers->AddHandler(base::MakeUnique<SupervisedUserCreationPolicyHandler>());
921 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 919 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
922 920
923 #if !defined(OS_ANDROID) 921 #if !defined(OS_ANDROID)
924 handlers->AddHandler(base::WrapUnique(new DownloadDirPolicyHandler)); 922 handlers->AddHandler(base::WrapUnique(new DownloadDirPolicyHandler));
923 handlers->AddHandler(base::MakeUnique<LocalSyncPolicyHandler>());
925 924
926 handlers->AddHandler(base::MakeUnique<SimpleSchemaValidatingPolicyHandler>( 925 handlers->AddHandler(base::MakeUnique<SimpleSchemaValidatingPolicyHandler>(
927 key::kRegisteredProtocolHandlers, 926 key::kRegisteredProtocolHandlers,
928 prefs::kPolicyRegisteredProtocolHandlers, chrome_schema, SCHEMA_STRICT, 927 prefs::kPolicyRegisteredProtocolHandlers, chrome_schema, SCHEMA_STRICT,
929 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 928 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
930 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)); 929 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED));
931 #endif 930 #endif
932 931
933 #if defined(OS_CHROMEOS) 932 #if defined(OS_CHROMEOS)
934 handlers->AddHandler(base::MakeUnique<extensions::ExtensionListPolicyHandler>( 933 handlers->AddHandler(base::MakeUnique<extensions::ExtensionListPolicyHandler>(
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 #endif // defined(OS_CHROMEOS) 1041 #endif // defined(OS_CHROMEOS)
1043 1042
1044 #if BUILDFLAG(ENABLE_PLUGINS) 1043 #if BUILDFLAG(ENABLE_PLUGINS)
1045 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1044 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1046 #endif // BUILDFLAG(ENABLE_PLUGINS) 1045 #endif // BUILDFLAG(ENABLE_PLUGINS)
1047 1046
1048 return handlers; 1047 return handlers;
1049 } 1048 }
1050 1049
1051 } // namespace policy 1050 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/policy/local_sync_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698