| 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/prefs/pref_value_map.h" | 10 #include "base/prefs/pref_value_map.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 base::Value::TYPE_BOOLEAN }, | 115 base::Value::TYPE_BOOLEAN }, |
| 116 { key::kPasswordManagerAllowShowPasswords, | 116 { key::kPasswordManagerAllowShowPasswords, |
| 117 password_manager::prefs::kPasswordManagerAllowShowPasswords, | 117 password_manager::prefs::kPasswordManagerAllowShowPasswords, |
| 118 base::Value::TYPE_BOOLEAN }, | 118 base::Value::TYPE_BOOLEAN }, |
| 119 { key::kPrintingEnabled, | 119 { key::kPrintingEnabled, |
| 120 prefs::kPrintingEnabled, | 120 prefs::kPrintingEnabled, |
| 121 base::Value::TYPE_BOOLEAN }, | 121 base::Value::TYPE_BOOLEAN }, |
| 122 { key::kDisablePrintPreview, | 122 { key::kDisablePrintPreview, |
| 123 prefs::kPrintPreviewDisabled, | 123 prefs::kPrintPreviewDisabled, |
| 124 base::Value::TYPE_BOOLEAN }, | 124 base::Value::TYPE_BOOLEAN }, |
| 125 { key::kMetricsReportingEnabled, | |
| 126 metrics::prefs::kMetricsReportingEnabled, | |
| 127 base::Value::TYPE_BOOLEAN }, | |
| 128 { key::kApplicationLocaleValue, | 125 { key::kApplicationLocaleValue, |
| 129 prefs::kApplicationLocale, | 126 prefs::kApplicationLocale, |
| 130 base::Value::TYPE_STRING }, | 127 base::Value::TYPE_STRING }, |
| 131 { key::kDisabledPlugins, | 128 { key::kDisabledPlugins, |
| 132 prefs::kPluginsDisabledPlugins, | 129 prefs::kPluginsDisabledPlugins, |
| 133 base::Value::TYPE_LIST }, | 130 base::Value::TYPE_LIST }, |
| 134 { key::kDisabledPluginsExceptions, | 131 { key::kDisabledPluginsExceptions, |
| 135 prefs::kPluginsDisabledPluginsExceptions, | 132 prefs::kPluginsDisabledPluginsExceptions, |
| 136 base::Value::TYPE_LIST }, | 133 base::Value::TYPE_LIST }, |
| 137 { key::kEnabledPlugins, | 134 { key::kEnabledPlugins, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 prefs::kCaptivePortalAuthenticationIgnoresProxy, | 473 prefs::kCaptivePortalAuthenticationIgnoresProxy, |
| 477 base::Value::TYPE_BOOLEAN }, | 474 base::Value::TYPE_BOOLEAN }, |
| 478 { key::kForceMaximizeOnFirstRun, | 475 { key::kForceMaximizeOnFirstRun, |
| 479 prefs::kForceMaximizeOnFirstRun, | 476 prefs::kForceMaximizeOnFirstRun, |
| 480 base::Value::TYPE_BOOLEAN }, | 477 base::Value::TYPE_BOOLEAN }, |
| 481 { key::kUnifiedDesktopEnabledByDefault, | 478 { key::kUnifiedDesktopEnabledByDefault, |
| 482 prefs::kUnifiedDesktopEnabledByDefault, | 479 prefs::kUnifiedDesktopEnabledByDefault, |
| 483 base::Value::TYPE_BOOLEAN }, | 480 base::Value::TYPE_BOOLEAN }, |
| 484 #endif // defined(OS_CHROMEOS) | 481 #endif // defined(OS_CHROMEOS) |
| 485 | 482 |
| 483 // Metrics reporting is controlled by a platform specific policy for ChromeOS |
| 484 #if defined(OS_CHROMEOS) |
| 485 { key::kDeviceMetricsReportingEnabled, |
| 486 metrics::prefs::kMetricsReportingEnabled, |
| 487 base::Value::TYPE_BOOLEAN }, |
| 488 #else |
| 489 { key::kMetricsReportingEnabled, |
| 490 metrics::prefs::kMetricsReportingEnabled, |
| 491 base::Value::TYPE_BOOLEAN }, |
| 492 #endif |
| 493 |
| 486 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 494 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 487 { key::kBackgroundModeEnabled, | 495 { key::kBackgroundModeEnabled, |
| 488 prefs::kBackgroundModeEnabled, | 496 prefs::kBackgroundModeEnabled, |
| 489 base::Value::TYPE_BOOLEAN }, | 497 base::Value::TYPE_BOOLEAN }, |
| 490 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 498 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 491 | 499 |
| 492 #if defined(OS_ANDROID) | 500 #if defined(OS_ANDROID) |
| 493 { key::kDataCompressionProxyEnabled, | 501 { key::kDataCompressionProxyEnabled, |
| 494 data_reduction_proxy::prefs::kDataReductionProxyEnabled, | 502 data_reduction_proxy::prefs::kDataReductionProxyEnabled, |
| 495 base::Value::TYPE_BOOLEAN }, | 503 base::Value::TYPE_BOOLEAN }, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, | 804 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, |
| 797 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); | 805 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); |
| 798 handlers->AddHandler(make_scoped_ptr( | 806 handlers->AddHandler(make_scoped_ptr( |
| 799 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); | 807 new chromeos::KeyPermissionsPolicyHandler(chrome_schema))); |
| 800 #endif // defined(OS_CHROMEOS) | 808 #endif // defined(OS_CHROMEOS) |
| 801 | 809 |
| 802 return handlers.Pass(); | 810 return handlers.Pass(); |
| 803 } | 811 } |
| 804 | 812 |
| 805 } // namespace policy | 813 } // namespace policy |
| OLD | NEW |