| 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 |
| 51 #if defined(ENABLE_EXTENSIONS) | 55 #if defined(ENABLE_EXTENSIONS) |
| 52 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" | 56 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle
r.h" |
| 53 #include "chrome/browser/extensions/policy_handlers.h" | 57 #include "chrome/browser/extensions/policy_handlers.h" |
| 54 #include "extensions/browser/pref_names.h" | 58 #include "extensions/browser/pref_names.h" |
| 55 #include "extensions/common/manifest.h" | 59 #include "extensions/common/manifest.h" |
| 56 #endif | 60 #endif |
| 57 | 61 |
| 58 namespace policy { | 62 namespace policy { |
| 59 | 63 |
| 60 namespace { | 64 namespace { |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 { key::kForceEphemeralProfiles, | 366 { key::kForceEphemeralProfiles, |
| 363 prefs::kForceEphemeralProfiles, | 367 prefs::kForceEphemeralProfiles, |
| 364 base::Value::TYPE_BOOLEAN }, | 368 base::Value::TYPE_BOOLEAN }, |
| 365 | 369 |
| 366 #if !defined(OS_MACOSX) && !defined(OS_IOS) | 370 #if !defined(OS_MACOSX) && !defined(OS_IOS) |
| 367 { key::kFullscreenAllowed, | 371 { key::kFullscreenAllowed, |
| 368 prefs::kFullscreenAllowed, | 372 prefs::kFullscreenAllowed, |
| 369 base::Value::TYPE_BOOLEAN }, | 373 base::Value::TYPE_BOOLEAN }, |
| 370 #if defined(ENABLE_EXTENSIONS) | 374 #if defined(ENABLE_EXTENSIONS) |
| 371 { key::kFullscreenAllowed, | 375 { key::kFullscreenAllowed, |
| 372 extensions::pref_names::kAppFullscreenAllowed, | 376 apps::prefs::kAppFullscreenAllowed, |
| 373 base::Value::TYPE_BOOLEAN }, | 377 base::Value::TYPE_BOOLEAN }, |
| 374 #endif // defined(ENABLE_EXTENSIONS) | 378 #endif // defined(ENABLE_EXTENSIONS) |
| 375 #endif // !defined(OS_MACOSX) && !defined(OS_IOS) | 379 #endif // !defined(OS_MACOSX) && !defined(OS_IOS) |
| 376 | 380 |
| 377 #if defined(OS_CHROMEOS) | 381 #if defined(OS_CHROMEOS) |
| 378 { key::kChromeOsLockOnIdleSuspend, | 382 { key::kChromeOsLockOnIdleSuspend, |
| 379 prefs::kEnableAutoScreenLock, | 383 prefs::kEnableAutoScreenLock, |
| 380 base::Value::TYPE_BOOLEAN }, | 384 base::Value::TYPE_BOOLEAN }, |
| 381 { key::kChromeOsReleaseChannel, | 385 { key::kChromeOsReleaseChannel, |
| 382 prefs::kChromeOsReleaseChannel, | 386 prefs::kChromeOsReleaseChannel, |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 chrome_schema, | 796 chrome_schema, |
| 793 SCHEMA_STRICT, | 797 SCHEMA_STRICT, |
| 794 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 798 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 795 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 799 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 796 #endif // defined(OS_CHROMEOS) | 800 #endif // defined(OS_CHROMEOS) |
| 797 | 801 |
| 798 return handlers.Pass(); | 802 return handlers.Pass(); |
| 799 } | 803 } |
| 800 | 804 |
| 801 } // namespace policy | 805 } // namespace policy |
| OLD | NEW |