| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 Value::TYPE_LIST }, | 330 Value::TYPE_LIST }, |
| 331 { key::kVideoCaptureAllowedUrls, | 331 { key::kVideoCaptureAllowedUrls, |
| 332 prefs::kVideoCaptureAllowedUrls, | 332 prefs::kVideoCaptureAllowedUrls, |
| 333 Value::TYPE_LIST }, | 333 Value::TYPE_LIST }, |
| 334 { key::kHideWebStoreIcon, | 334 { key::kHideWebStoreIcon, |
| 335 prefs::kHideWebStoreIcon, | 335 prefs::kHideWebStoreIcon, |
| 336 Value::TYPE_BOOLEAN }, | 336 Value::TYPE_BOOLEAN }, |
| 337 { key::kVariationsRestrictParameter, | 337 { key::kVariationsRestrictParameter, |
| 338 prefs::kVariationsRestrictParameter, | 338 prefs::kVariationsRestrictParameter, |
| 339 Value::TYPE_STRING }, | 339 Value::TYPE_STRING }, |
| 340 { key::kContentPackDefaultFilteringBehavior, | |
| 341 prefs::kDefaultManagedModeFilteringBehavior, | |
| 342 Value::TYPE_INTEGER }, | |
| 343 { key::kContentPackManualBehaviorHosts, | |
| 344 prefs::kManagedModeManualHosts, | |
| 345 Value::TYPE_DICTIONARY }, | |
| 346 { key::kContentPackManualBehaviorURLs, | |
| 347 prefs::kManagedModeManualURLs, | |
| 348 Value::TYPE_DICTIONARY }, | |
| 349 // TODO(ibraaaa): Remove this when we finish moving | |
| 350 // managed user settings out of the policy code. | |
| 351 // http://crbug.com/280674 | |
| 352 { key::kUserDisplayName, | |
| 353 prefs::kProfileName, | |
| 354 Value::TYPE_STRING }, | |
| 355 { key::kSupervisedUserCreationEnabled, | 340 { key::kSupervisedUserCreationEnabled, |
| 356 prefs::kManagedUserCreationAllowed, | 341 prefs::kManagedUserCreationAllowed, |
| 357 Value::TYPE_BOOLEAN }, | 342 Value::TYPE_BOOLEAN }, |
| 358 | 343 |
| 359 #if !defined(OS_MACOSX) | 344 #if !defined(OS_MACOSX) |
| 360 { key::kFullscreenAllowed, | 345 { key::kFullscreenAllowed, |
| 361 prefs::kFullscreenAllowed, | 346 prefs::kFullscreenAllowed, |
| 362 Value::TYPE_BOOLEAN }, | 347 Value::TYPE_BOOLEAN }, |
| 363 { key::kFullscreenAllowed, | 348 { key::kFullscreenAllowed, |
| 364 apps::prefs::kAppFullscreenAllowed, | 349 apps::prefs::kAppFullscreenAllowed, |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 } | 623 } |
| 639 | 624 |
| 640 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 625 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
| 641 PolicyMap* policies) const { | 626 PolicyMap* policies) const { |
| 642 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 627 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
| 643 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 628 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
| 644 (*handler)->PrepareForDisplaying(policies); | 629 (*handler)->PrepareForDisplaying(policies); |
| 645 } | 630 } |
| 646 | 631 |
| 647 } // namespace policy | 632 } // namespace policy |
| OLD | NEW |