OLD | NEW |
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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" | 41 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" |
42 #include "chromeos/dbus/power_policy_controller.h" | 42 #include "chromeos/dbus/power_policy_controller.h" |
43 #include "components/user_manager/user.h" | 43 #include "components/user_manager/user.h" |
44 #include "components/user_manager/user_manager.h" | 44 #include "components/user_manager/user_manager.h" |
45 #endif | 45 #endif |
46 | 46 |
47 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 47 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
48 #include "chrome/browser/download/download_dir_policy_handler.h" | 48 #include "chrome/browser/download/download_dir_policy_handler.h" |
49 #endif | 49 #endif |
50 | 50 |
51 #if !defined(OS_MACOSX) && !defined(OS_IOS) | |
52 #include "apps/pref_names.h" | |
53 #endif | |
54 | |
55 #if defined(ENABLE_EXTENSIONS) | 51 #if defined(ENABLE_EXTENSIONS) |
56 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" | 52 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" |
57 #include "chrome/browser/extensions/policy_handlers.h" | 53 #include "chrome/browser/extensions/policy_handlers.h" |
58 #include "extensions/browser/pref_names.h" | 54 #include "extensions/browser/pref_names.h" |
59 #include "extensions/common/manifest.h" | 55 #include "extensions/common/manifest.h" |
60 #endif | 56 #endif |
61 | 57 |
62 namespace policy { | 58 namespace policy { |
63 | 59 |
64 namespace { | 60 namespace { |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 { key::kForceEphemeralProfiles, | 359 { key::kForceEphemeralProfiles, |
364 prefs::kForceEphemeralProfiles, | 360 prefs::kForceEphemeralProfiles, |
365 base::Value::TYPE_BOOLEAN }, | 361 base::Value::TYPE_BOOLEAN }, |
366 | 362 |
367 #if !defined(OS_MACOSX) && !defined(OS_IOS) | 363 #if !defined(OS_MACOSX) && !defined(OS_IOS) |
368 { key::kFullscreenAllowed, | 364 { key::kFullscreenAllowed, |
369 prefs::kFullscreenAllowed, | 365 prefs::kFullscreenAllowed, |
370 base::Value::TYPE_BOOLEAN }, | 366 base::Value::TYPE_BOOLEAN }, |
371 #if defined(ENABLE_EXTENSIONS) | 367 #if defined(ENABLE_EXTENSIONS) |
372 { key::kFullscreenAllowed, | 368 { key::kFullscreenAllowed, |
373 apps::prefs::kAppFullscreenAllowed, | 369 extensions::pref_names::kAppFullscreenAllowed, |
374 base::Value::TYPE_BOOLEAN }, | 370 base::Value::TYPE_BOOLEAN }, |
375 #endif // defined(ENABLE_EXTENSIONS) | 371 #endif // defined(ENABLE_EXTENSIONS) |
376 #endif // !defined(OS_MACOSX) && !defined(OS_IOS) | 372 #endif // !defined(OS_MACOSX) && !defined(OS_IOS) |
377 | 373 |
378 #if defined(OS_CHROMEOS) | 374 #if defined(OS_CHROMEOS) |
379 { key::kChromeOsLockOnIdleSuspend, | 375 { key::kChromeOsLockOnIdleSuspend, |
380 prefs::kEnableAutoScreenLock, | 376 prefs::kEnableAutoScreenLock, |
381 base::Value::TYPE_BOOLEAN }, | 377 base::Value::TYPE_BOOLEAN }, |
382 { key::kChromeOsReleaseChannel, | 378 { key::kChromeOsReleaseChannel, |
383 prefs::kChromeOsReleaseChannel, | 379 prefs::kChromeOsReleaseChannel, |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 chrome_schema, | 789 chrome_schema, |
794 SCHEMA_STRICT, | 790 SCHEMA_STRICT, |
795 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 791 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
796 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 792 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
797 #endif // defined(OS_CHROMEOS) | 793 #endif // defined(OS_CHROMEOS) |
798 | 794 |
799 return handlers.Pass(); | 795 return handlers.Pass(); |
800 } | 796 } |
801 | 797 |
802 } // namespace policy | 798 } // namespace policy |
OLD | NEW |