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

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

Issue 2572353002: [ChromeOS] Add device wallpaper policy handler to ensure the policy display correctly in chrome://p… (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
« no previous file with comments | « no previous file | no next file » | 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 handlers->AddHandler(base::MakeUnique<LegacyPoliciesDeprecatingPolicyHandler>( 942 handlers->AddHandler(base::MakeUnique<LegacyPoliciesDeprecatingPolicyHandler>(
943 std::move(power_management_idle_legacy_policies), 943 std::move(power_management_idle_legacy_policies),
944 base::WrapUnique( 944 base::WrapUnique(
945 new PowerManagementIdleSettingsPolicyHandler(chrome_schema)))); 945 new PowerManagementIdleSettingsPolicyHandler(chrome_schema))));
946 handlers->AddHandler(base::MakeUnique<LegacyPoliciesDeprecatingPolicyHandler>( 946 handlers->AddHandler(base::MakeUnique<LegacyPoliciesDeprecatingPolicyHandler>(
947 std::move(screen_lock_legacy_policies), 947 std::move(screen_lock_legacy_policies),
948 base::WrapUnique(new ScreenLockDelayPolicyHandler(chrome_schema)))); 948 base::WrapUnique(new ScreenLockDelayPolicyHandler(chrome_schema))));
949 handlers->AddHandler( 949 handlers->AddHandler(
950 base::MakeUnique<ExternalDataPolicyHandler>(key::kUserAvatarImage)); 950 base::MakeUnique<ExternalDataPolicyHandler>(key::kUserAvatarImage));
951 handlers->AddHandler( 951 handlers->AddHandler(
952 base::MakeUnique<ExternalDataPolicyHandler>(key::kDeviceWallpaperImage));
953 handlers->AddHandler(
952 base::MakeUnique<ExternalDataPolicyHandler>(key::kWallpaperImage)); 954 base::MakeUnique<ExternalDataPolicyHandler>(key::kWallpaperImage));
953 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler( 955 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler(
954 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, 956 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT,
955 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 957 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
956 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 958 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
957 handlers->AddHandler( 959 handlers->AddHandler(
958 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema)); 960 base::MakeUnique<chromeos::KeyPermissionsPolicyHandler>(chrome_schema));
959 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler())); 961 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler()));
960 #endif // defined(OS_CHROMEOS) 962 #endif // defined(OS_CHROMEOS)
961 963
962 #if BUILDFLAG(ENABLE_PLUGINS) 964 #if BUILDFLAG(ENABLE_PLUGINS)
963 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 965 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
964 #endif // BUILDFLAG(ENABLE_PLUGINS) 966 #endif // BUILDFLAG(ENABLE_PLUGINS)
965 967
966 return handlers; 968 return handlers;
967 } 969 }
968 970
969 } // namespace policy 971 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698