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 <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/prefs/pref_value_map.h" | 9 #include "base/prefs/pref_value_map.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 Value::TYPE_BOOLEAN }, | 320 Value::TYPE_BOOLEAN }, |
321 { key::kAudioCaptureAllowed, | 321 { key::kAudioCaptureAllowed, |
322 prefs::kAudioCaptureAllowed, | 322 prefs::kAudioCaptureAllowed, |
323 Value::TYPE_BOOLEAN }, | 323 Value::TYPE_BOOLEAN }, |
324 { key::kVideoCaptureAllowed, | 324 { key::kVideoCaptureAllowed, |
325 prefs::kVideoCaptureAllowed, | 325 prefs::kVideoCaptureAllowed, |
326 Value::TYPE_BOOLEAN }, | 326 Value::TYPE_BOOLEAN }, |
327 { key::kHideWebStoreIcon, | 327 { key::kHideWebStoreIcon, |
328 prefs::kHideWebStoreIcon, | 328 prefs::kHideWebStoreIcon, |
329 Value::TYPE_BOOLEAN }, | 329 Value::TYPE_BOOLEAN }, |
| 330 |
| 331 #if !defined(OS_CHROMEOS) |
330 { key::kVariationsRestrictParameter, | 332 { key::kVariationsRestrictParameter, |
331 prefs::kVariationsRestrictParameter, | 333 prefs::kVariationsRestrictParameter, |
332 Value::TYPE_STRING }, | 334 Value::TYPE_STRING }, |
| 335 #endif |
333 | 336 |
334 #if defined(OS_CHROMEOS) | 337 #if defined(OS_CHROMEOS) |
335 { key::kChromeOsLockOnIdleSuspend, | 338 { key::kChromeOsLockOnIdleSuspend, |
336 prefs::kEnableScreenLock, | 339 prefs::kEnableScreenLock, |
337 Value::TYPE_BOOLEAN }, | 340 Value::TYPE_BOOLEAN }, |
338 { key::kChromeOsReleaseChannel, | 341 { key::kChromeOsReleaseChannel, |
339 prefs::kChromeOsReleaseChannel, | 342 prefs::kChromeOsReleaseChannel, |
340 Value::TYPE_STRING }, | 343 Value::TYPE_STRING }, |
341 { key::kDriveDisabled, | 344 { key::kDriveDisabled, |
342 prefs::kDisableDrive, | 345 prefs::kDisableDrive, |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 } | 544 } |
542 | 545 |
543 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 546 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
544 PolicyMap* policies) const { | 547 PolicyMap* policies) const { |
545 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 548 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
546 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 549 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
547 (*handler)->PrepareForDisplaying(policies); | 550 (*handler)->PrepareForDisplaying(policies); |
548 } | 551 } |
549 | 552 |
550 } // namespace policy | 553 } // namespace policy |
OLD | NEW |