| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_pref_store.h" | 5 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, | 256 { Value::TYPE_BOOLEAN, kPolicyTranslateEnabled, prefs::kEnableTranslate }, |
| 257 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, | 257 { Value::TYPE_BOOLEAN, kPolicyBookmarkBarEnabled, prefs::kEnableBookmarkBar }, |
| 258 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, | 258 { Value::TYPE_BOOLEAN, kPolicyAllowOutdatedPlugins, |
| 259 prefs::kPluginsAllowOutdated }, | 259 prefs::kPluginsAllowOutdated }, |
| 260 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, | 260 { Value::TYPE_BOOLEAN, kPolicyAlwaysAuthorizePlugins, |
| 261 prefs::kPluginsAlwaysAuthorize }, | 261 prefs::kPluginsAlwaysAuthorize }, |
| 262 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, | 262 { Value::TYPE_BOOLEAN, kPolicyEditBookmarksEnabled, |
| 263 prefs::kEditBookmarksEnabled }, | 263 prefs::kEditBookmarksEnabled }, |
| 264 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, | 264 { Value::TYPE_BOOLEAN, kPolicyAllowFileSelectionDialogs, |
| 265 prefs::kAllowFileSelectionDialogs }, | 265 prefs::kAllowFileSelectionDialogs }, |
| 266 { Value::TYPE_BOOLEAN, kPolicyChromotingEnabled, | |
| 267 prefs::kChromotingEnabled }, | |
| 268 { Value::TYPE_BOOLEAN, kPolicyChromotingHostEnabled, | |
| 269 prefs::kChromotingHostEnabled }, | |
| 270 { Value::TYPE_BOOLEAN, kPolicyChromotingHostFirewallTraversal, | |
| 271 prefs::kChromotingHostFirewallTraversal }, | |
| 272 | 266 |
| 273 #if defined(OS_CHROMEOS) | 267 #if defined(OS_CHROMEOS) |
| 274 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, | 268 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, |
| 275 prefs::kEnableScreenLock }, | 269 prefs::kEnableScreenLock }, |
| 276 #endif | 270 #endif |
| 277 }; | 271 }; |
| 278 | 272 |
| 279 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry | 273 const ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry |
| 280 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { | 274 ConfigurationPolicyPrefKeeper::kDefaultSearchPolicyMap[] = { |
| 281 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, | 275 { Value::TYPE_BOOLEAN, kPolicyDefaultSearchProviderEnabled, |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 { kPolicyAllowOutdatedPlugins, Value::TYPE_BOOLEAN, | 994 { kPolicyAllowOutdatedPlugins, Value::TYPE_BOOLEAN, |
| 1001 key::kAllowOutdatedPlugins }, | 995 key::kAllowOutdatedPlugins }, |
| 1002 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, | 996 { kPolicyAlwaysAuthorizePlugins, Value::TYPE_BOOLEAN, |
| 1003 key::kAlwaysAuthorizePlugins }, | 997 key::kAlwaysAuthorizePlugins }, |
| 1004 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, | 998 { kPolicyBookmarkBarEnabled, Value::TYPE_BOOLEAN, |
| 1005 key::kBookmarkBarEnabled }, | 999 key::kBookmarkBarEnabled }, |
| 1006 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, | 1000 { kPolicyEditBookmarksEnabled, Value::TYPE_BOOLEAN, |
| 1007 key::kEditBookmarksEnabled }, | 1001 key::kEditBookmarksEnabled }, |
| 1008 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, | 1002 { kPolicyAllowFileSelectionDialogs, Value::TYPE_BOOLEAN, |
| 1009 key::kAllowFileSelectionDialogs }, | 1003 key::kAllowFileSelectionDialogs }, |
| 1010 { kPolicyChromotingEnabled, Value::TYPE_BOOLEAN, | |
| 1011 key::kChromotingEnabled }, | |
| 1012 { kPolicyChromotingHostEnabled, Value::TYPE_BOOLEAN, | |
| 1013 key::kChromotingHostEnabled }, | |
| 1014 { kPolicyChromotingHostFirewallTraversal, Value::TYPE_BOOLEAN, | |
| 1015 key::kChromotingHostFirewallTraversal }, | |
| 1016 | 1004 |
| 1017 #if defined(OS_CHROMEOS) | 1005 #if defined(OS_CHROMEOS) |
| 1018 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, | 1006 { kPolicyChromeOsLockOnIdleSuspend, Value::TYPE_BOOLEAN, |
| 1019 key::kChromeOsLockOnIdleSuspend }, | 1007 key::kChromeOsLockOnIdleSuspend }, |
| 1020 #endif | 1008 #endif |
| 1021 }; | 1009 }; |
| 1022 | 1010 |
| 1023 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { | 1011 static ConfigurationPolicyProvider::PolicyDefinitionList policy_list = { |
| 1024 entries, | 1012 entries, |
| 1025 entries + arraysize(entries), | 1013 entries + arraysize(entries), |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1049 // Update the initialization flag. | 1037 // Update the initialization flag. |
| 1050 if (!initialization_complete_ && | 1038 if (!initialization_complete_ && |
| 1051 provider_->IsInitializationComplete()) { | 1039 provider_->IsInitializationComplete()) { |
| 1052 initialization_complete_ = true; | 1040 initialization_complete_ = true; |
| 1053 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, | 1041 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, |
| 1054 OnInitializationCompleted()); | 1042 OnInitializationCompleted()); |
| 1055 } | 1043 } |
| 1056 } | 1044 } |
| 1057 | 1045 |
| 1058 } // namespace policy | 1046 } // namespace policy |
| OLD | NEW |