| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 Value::TYPE_BOOLEAN }, | 295 Value::TYPE_BOOLEAN }, |
| 296 { key::kChromeOsReleaseChannel, | 296 { key::kChromeOsReleaseChannel, |
| 297 prefs::kChromeOsReleaseChannel, | 297 prefs::kChromeOsReleaseChannel, |
| 298 Value::TYPE_STRING }, | 298 Value::TYPE_STRING }, |
| 299 { key::kGDataDisabled, | 299 { key::kGDataDisabled, |
| 300 prefs::kDisableGData, | 300 prefs::kDisableGData, |
| 301 Value::TYPE_BOOLEAN }, | 301 Value::TYPE_BOOLEAN }, |
| 302 { key::kGDataDisabledOverCellular, | 302 { key::kGDataDisabledOverCellular, |
| 303 prefs::kDisableGDataOverCellular, | 303 prefs::kDisableGDataOverCellular, |
| 304 Value::TYPE_BOOLEAN }, | 304 Value::TYPE_BOOLEAN }, |
| 305 { key::kExternalStorageDisabled, |
| 306 prefs::kExternalStorageDisabled, |
| 307 Value::TYPE_BOOLEAN }, |
| 305 #endif // defined(OS_CHROMEOS) | 308 #endif // defined(OS_CHROMEOS) |
| 306 | 309 |
| 307 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 310 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 308 { key::kBackgroundModeEnabled, | 311 { key::kBackgroundModeEnabled, |
| 309 prefs::kBackgroundModeEnabled, | 312 prefs::kBackgroundModeEnabled, |
| 310 Value::TYPE_BOOLEAN }, | 313 Value::TYPE_BOOLEAN }, |
| 311 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) | 314 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 312 }; | 315 }; |
| 313 | 316 |
| 314 } // namespace | 317 } // namespace |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 392 } |
| 390 | 393 |
| 391 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 394 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 392 PolicyMap* policies) const { | 395 PolicyMap* policies) const { |
| 393 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 396 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 394 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 397 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 395 (*handler)->PrepareForDisplaying(policies); | 398 (*handler)->PrepareForDisplaying(policies); |
| 396 } | 399 } |
| 397 | 400 |
| 398 } // namespace policy | 401 } // namespace policy |
| OLD | NEW |