| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "chrome/browser/policy/configuration_policy_handler_list.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/policy/configuration_policy_handler.h" | 9 #include "chrome/browser/policy/configuration_policy_handler.h" |
| 10 #include "chrome/browser/policy/policy_error_map.h" | 10 #include "chrome/browser/policy/policy_error_map.h" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 Value::TYPE_STRING }, | 284 Value::TYPE_STRING }, |
| 285 { key::kDefaultMediaStreamSetting, | 285 { key::kDefaultMediaStreamSetting, |
| 286 prefs::kManagedDefaultMediaStreamSetting, | 286 prefs::kManagedDefaultMediaStreamSetting, |
| 287 Value::TYPE_INTEGER }, | 287 Value::TYPE_INTEGER }, |
| 288 { key::kDisableSafeBrowsingProceedAnyway, | 288 { key::kDisableSafeBrowsingProceedAnyway, |
| 289 prefs::kSafeBrowsingProceedAnywayDisabled, | 289 prefs::kSafeBrowsingProceedAnywayDisabled, |
| 290 Value::TYPE_BOOLEAN }, | 290 Value::TYPE_BOOLEAN }, |
| 291 { key::kSpellCheckServiceEnabled, | 291 { key::kSpellCheckServiceEnabled, |
| 292 prefs::kSpellCheckUseSpellingService, | 292 prefs::kSpellCheckUseSpellingService, |
| 293 Value::TYPE_BOOLEAN }, | 293 Value::TYPE_BOOLEAN }, |
| 294 { key::kDisableScreenshots, |
| 295 prefs::kDisableScreenshots, |
| 296 Value::TYPE_BOOLEAN }, |
| 294 | 297 |
| 295 #if defined(OS_CHROMEOS) | 298 #if defined(OS_CHROMEOS) |
| 296 { key::kChromeOsLockOnIdleSuspend, | 299 { key::kChromeOsLockOnIdleSuspend, |
| 297 prefs::kEnableScreenLock, | 300 prefs::kEnableScreenLock, |
| 298 Value::TYPE_BOOLEAN }, | 301 Value::TYPE_BOOLEAN }, |
| 299 { key::kChromeOsReleaseChannel, | 302 { key::kChromeOsReleaseChannel, |
| 300 prefs::kChromeOsReleaseChannel, | 303 prefs::kChromeOsReleaseChannel, |
| 301 Value::TYPE_STRING }, | 304 Value::TYPE_STRING }, |
| 302 { key::kGDataDisabled, | 305 { key::kGDataDisabled, |
| 303 prefs::kDisableGData, | 306 prefs::kDisableGData, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 } | 398 } |
| 396 | 399 |
| 397 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 400 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 398 PolicyMap* policies) const { | 401 PolicyMap* policies) const { |
| 399 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 402 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 400 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 403 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 401 (*handler)->PrepareForDisplaying(policies); | 404 (*handler)->PrepareForDisplaying(policies); |
| 402 } | 405 } |
| 403 | 406 |
| 404 } // namespace policy | 407 } // namespace policy |
| OLD | NEW |