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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 } | 617 } |
633 | 618 |
634 void ConfigurationPolicyHandlerList::PrepareForDisplaying( | 619 void ConfigurationPolicyHandlerList::PrepareForDisplaying( |
635 PolicyMap* policies) const { | 620 PolicyMap* policies) const { |
636 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; | 621 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; |
637 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) | 622 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) |
638 (*handler)->PrepareForDisplaying(policies); | 623 (*handler)->PrepareForDisplaying(policies); |
639 } | 624 } |
640 | 625 |
641 } // namespace policy | 626 } // namespace policy |
OLD | NEW |