| 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/prefs/pref_value_map.h" | 7 #include "base/prefs/pref_value_map.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/policy/configuration_policy_handler.h" | 10 #include "chrome/browser/policy/configuration_policy_handler.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 Value::TYPE_BOOLEAN }, | 322 Value::TYPE_BOOLEAN }, |
| 323 { key::kExternalStorageDisabled, | 323 { key::kExternalStorageDisabled, |
| 324 prefs::kExternalStorageDisabled, | 324 prefs::kExternalStorageDisabled, |
| 325 Value::TYPE_BOOLEAN }, | 325 Value::TYPE_BOOLEAN }, |
| 326 { key::kAudioOutputAllowed, | 326 { key::kAudioOutputAllowed, |
| 327 prefs::kAudioOutputAllowed, | 327 prefs::kAudioOutputAllowed, |
| 328 Value::TYPE_BOOLEAN }, | 328 Value::TYPE_BOOLEAN }, |
| 329 { key::kAudioCaptureAllowed, | 329 { key::kAudioCaptureAllowed, |
| 330 prefs::kAudioCaptureAllowed, | 330 prefs::kAudioCaptureAllowed, |
| 331 Value::TYPE_BOOLEAN }, | 331 Value::TYPE_BOOLEAN }, |
| 332 { key::kShelfAutoHideBehavior, |
| 333 prefs::kShelfAutoHideBehaviorLocal, |
| 334 Value::TYPE_STRING }, |
| 332 #endif // defined(OS_CHROMEOS) | 335 #endif // defined(OS_CHROMEOS) |
| 333 | 336 |
| 334 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 337 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 335 { key::kBackgroundModeEnabled, | 338 { key::kBackgroundModeEnabled, |
| 336 prefs::kBackgroundModeEnabled, | 339 prefs::kBackgroundModeEnabled, |
| 337 Value::TYPE_BOOLEAN }, | 340 Value::TYPE_BOOLEAN }, |
| 338 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 341 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 339 }; | 342 }; |
| 340 | 343 |
| 341 } // namespace | 344 } // namespace |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 } | 419 } |
| 417 | 420 |
| 418 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 421 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 419 PolicyMap* policies) const { | 422 PolicyMap* policies) const { |
| 420 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 423 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 421 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 424 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 422 (*handler)->PrepareForDisplaying(policies); | 425 (*handler)->PrepareForDisplaying(policies); |
| 423 } | 426 } |
| 424 | 427 |
| 425 } // namespace policy | 428 } // namespace policy |
| OLD | NEW |