| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 Value::TYPE_STRING }, | 313 Value::TYPE_STRING }, |
| 314 { key::kGDataDisabled, | 314 { key::kGDataDisabled, |
| 315 prefs::kDisableGData, | 315 prefs::kDisableGData, |
| 316 Value::TYPE_BOOLEAN }, | 316 Value::TYPE_BOOLEAN }, |
| 317 { key::kGDataDisabledOverCellular, | 317 { key::kGDataDisabledOverCellular, |
| 318 prefs::kDisableGDataOverCellular, | 318 prefs::kDisableGDataOverCellular, |
| 319 Value::TYPE_BOOLEAN }, | 319 Value::TYPE_BOOLEAN }, |
| 320 { key::kExternalStorageDisabled, | 320 { key::kExternalStorageDisabled, |
| 321 prefs::kExternalStorageDisabled, | 321 prefs::kExternalStorageDisabled, |
| 322 Value::TYPE_BOOLEAN }, | 322 Value::TYPE_BOOLEAN }, |
| 323 { key::kAudioOutputAllowed, |
| 324 prefs::kAudioOutputAllowed, |
| 325 Value::TYPE_BOOLEAN }, |
| 326 { key::kAudioCaptureAllowed, |
| 327 prefs::kAudioCaptureAllowed, |
| 328 Value::TYPE_BOOLEAN }, |
| 323 #endif // defined(OS_CHROMEOS) | 329 #endif // defined(OS_CHROMEOS) |
| 324 | 330 |
| 325 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 331 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 326 { key::kBackgroundModeEnabled, | 332 { key::kBackgroundModeEnabled, |
| 327 prefs::kBackgroundModeEnabled, | 333 prefs::kBackgroundModeEnabled, |
| 328 Value::TYPE_BOOLEAN }, | 334 Value::TYPE_BOOLEAN }, |
| 329 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 335 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 330 }; | 336 }; |
| 331 | 337 |
| 332 } // namespace | 338 } // namespace |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 } | 413 } |
| 408 | 414 |
| 409 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 415 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 410 PolicyMap* policies) const { | 416 PolicyMap* policies) const { |
| 411 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 417 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 412 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 418 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 413 (*handler)->PrepareForDisplaying(policies); | 419 (*handler)->PrepareForDisplaying(policies); |
| 414 } | 420 } |
| 415 | 421 |
| 416 } // namespace policy | 422 } // namespace policy |
| OLD | NEW |