| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 Value::TYPE_BOOLEAN }, | 314 Value::TYPE_BOOLEAN }, |
| 315 { key::kDisableScreenshots, | 315 { key::kDisableScreenshots, |
| 316 prefs::kDisableScreenshots, | 316 prefs::kDisableScreenshots, |
| 317 Value::TYPE_BOOLEAN }, | 317 Value::TYPE_BOOLEAN }, |
| 318 { key::kAudioCaptureAllowed, | 318 { key::kAudioCaptureAllowed, |
| 319 prefs::kAudioCaptureAllowed, | 319 prefs::kAudioCaptureAllowed, |
| 320 Value::TYPE_BOOLEAN }, | 320 Value::TYPE_BOOLEAN }, |
| 321 { key::kVideoCaptureAllowed, | 321 { key::kVideoCaptureAllowed, |
| 322 prefs::kVideoCaptureAllowed, | 322 prefs::kVideoCaptureAllowed, |
| 323 Value::TYPE_BOOLEAN }, | 323 Value::TYPE_BOOLEAN }, |
| 324 { key::kAudioCaptureAllowedUrls, |
| 325 prefs::kAudioCaptureAllowedUrls, |
| 326 Value::TYPE_LIST }, |
| 327 { key::kVideoCaptureAllowedUrls, |
| 328 prefs::kVideoCaptureAllowedUrls, |
| 329 Value::TYPE_LIST }, |
| 324 { key::kHideWebStoreIcon, | 330 { key::kHideWebStoreIcon, |
| 325 prefs::kHideWebStoreIcon, | 331 prefs::kHideWebStoreIcon, |
| 326 Value::TYPE_BOOLEAN }, | 332 Value::TYPE_BOOLEAN }, |
| 327 { key::kVariationsRestrictParameter, | 333 { key::kVariationsRestrictParameter, |
| 328 prefs::kVariationsRestrictParameter, | 334 prefs::kVariationsRestrictParameter, |
| 329 Value::TYPE_STRING }, | 335 Value::TYPE_STRING }, |
| 330 { key::kContentPackDefaultFilteringBehavior, | 336 { key::kContentPackDefaultFilteringBehavior, |
| 331 prefs::kDefaultManagedModeFilteringBehavior, | 337 prefs::kDefaultManagedModeFilteringBehavior, |
| 332 Value::TYPE_INTEGER }, | 338 Value::TYPE_INTEGER }, |
| 333 { key::kContentPackManualBehaviorHosts, | 339 { key::kContentPackManualBehaviorHosts, |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 } | 565 } |
| 560 | 566 |
| 561 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 567 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 562 PolicyMap* policies) const { | 568 PolicyMap* policies) const { |
| 563 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 569 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 564 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 570 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 565 (*handler)->PrepareForDisplaying(policies); | 571 (*handler)->PrepareForDisplaying(policies); |
| 566 } | 572 } |
| 567 | 573 |
| 568 } // namespace policy | 574 } // namespace policy |
| OLD | NEW |