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

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

Issue 2243513002: arc: Make Location Service manageable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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 | « no previous file | chrome/browser/policy/default_geolocation_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "policy/policy_constants.h" 51 #include "policy/policy_constants.h"
52 52
53 #if BUILDFLAG(ANDROID_JAVA_UI) 53 #if BUILDFLAG(ANDROID_JAVA_UI)
54 #include "chrome/browser/search/contextual_search_policy_handler_android.h" 54 #include "chrome/browser/search/contextual_search_policy_handler_android.h"
55 #endif 55 #endif
56 56
57 #if defined(OS_CHROMEOS) 57 #if defined(OS_CHROMEOS)
58 #include "ash/common/accessibility_types.h" 58 #include "ash/common/accessibility_types.h"
59 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h " 59 #include "chrome/browser/chromeos/platform_keys/key_permissions_policy_handler.h "
60 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h " 60 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h "
61 #include "chrome/browser/policy/default_geolocation_policy_handler.h"
61 #include "chromeos/chromeos_pref_names.h" 62 #include "chromeos/chromeos_pref_names.h"
62 #include "chromeos/dbus/power_policy_controller.h" 63 #include "chromeos/dbus/power_policy_controller.h"
63 #include "components/drive/drive_pref_names.h" 64 #include "components/drive/drive_pref_names.h"
64 #include "components/user_manager/user.h" 65 #include "components/user_manager/user.h"
65 #include "components/user_manager/user_manager.h" 66 #include "components/user_manager/user_manager.h"
66 #endif 67 #endif
67 68
68 #if !defined(OS_ANDROID) 69 #if !defined(OS_ANDROID)
69 #include "chrome/browser/download/download_dir_policy_handler.h" 70 #include "chrome/browser/download/download_dir_policy_handler.h"
70 #endif 71 #endif
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 handlers->AddHandler( 863 handlers->AddHandler(
863 base::WrapUnique(new ExternalDataPolicyHandler(key::kUserAvatarImage))); 864 base::WrapUnique(new ExternalDataPolicyHandler(key::kUserAvatarImage)));
864 handlers->AddHandler( 865 handlers->AddHandler(
865 base::WrapUnique(new ExternalDataPolicyHandler(key::kWallpaperImage))); 866 base::WrapUnique(new ExternalDataPolicyHandler(key::kWallpaperImage)));
866 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler( 867 handlers->AddHandler(base::WrapUnique(new SimpleSchemaValidatingPolicyHandler(
867 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, 868 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT,
868 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 869 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
869 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 870 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
870 handlers->AddHandler(base::WrapUnique( 871 handlers->AddHandler(base::WrapUnique(
871 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); 872 new chromeos::KeyPermissionsPolicyHandler(chrome_schema)));
873 handlers->AddHandler(base::WrapUnique(new DefaultGeolocationPolicyHandler()));
872 #endif // defined(OS_CHROMEOS) 874 #endif // defined(OS_CHROMEOS)
873 875
874 return handlers; 876 return handlers;
875 } 877 }
876 878
877 } // namespace policy 879 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/default_geolocation_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698