Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list.cc

Issue 23533032: Added policy to control pref: spdy_proxy.enabled (kSpdyProxyAuthEnabled). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed based on Joao's comments. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 { key::kAttestationEnabledForUser, 432 { key::kAttestationEnabledForUser,
433 prefs::kAttestationEnabled, 433 prefs::kAttestationEnabled,
434 Value::TYPE_BOOLEAN }, 434 Value::TYPE_BOOLEAN },
435 #endif // defined(OS_CHROMEOS) 435 #endif // defined(OS_CHROMEOS)
436 436
437 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 437 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
438 { key::kBackgroundModeEnabled, 438 { key::kBackgroundModeEnabled,
439 prefs::kBackgroundModeEnabled, 439 prefs::kBackgroundModeEnabled,
440 Value::TYPE_BOOLEAN }, 440 Value::TYPE_BOOLEAN },
441 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 441 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
442
443 #if defined(OS_ANDROID)
444 { key::kDataCompressionProxyEnabled,
445 prefs::kSpdyProxyAuthEnabled,
446 Value::TYPE_BOOLEAN },
447 #endif // defined(OS_ANDROID)
442 }; 448 };
443 449
444 // Mapping from extension type names to Manifest::Type. 450 // Mapping from extension type names to Manifest::Type.
445 StringToIntEnumListPolicyHandler::MappingEntry kExtensionAllowedTypesMap[] = { 451 StringToIntEnumListPolicyHandler::MappingEntry kExtensionAllowedTypesMap[] = {
446 { "extension", extensions::Manifest::TYPE_EXTENSION }, 452 { "extension", extensions::Manifest::TYPE_EXTENSION },
447 { "theme", extensions::Manifest::TYPE_THEME }, 453 { "theme", extensions::Manifest::TYPE_THEME },
448 { "user_script", extensions::Manifest::TYPE_USER_SCRIPT }, 454 { "user_script", extensions::Manifest::TYPE_USER_SCRIPT },
449 { "hosted_app", extensions::Manifest::TYPE_HOSTED_APP }, 455 { "hosted_app", extensions::Manifest::TYPE_HOSTED_APP },
450 { "legacy_packaged_app", extensions::Manifest::TYPE_LEGACY_PACKAGED_APP }, 456 { "legacy_packaged_app", extensions::Manifest::TYPE_LEGACY_PACKAGED_APP },
451 { "platform_app", extensions::Manifest::TYPE_PLATFORM_APP }, 457 { "platform_app", extensions::Manifest::TYPE_PLATFORM_APP },
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 } 638 }
633 639
634 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 640 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
635 PolicyMap* policies) const { 641 PolicyMap* policies) const {
636 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 642 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
637 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 643 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
638 (*handler)->PrepareForDisplaying(policies); 644 (*handler)->PrepareForDisplaying(policies);
639 } 645 }
640 646
641 } // namespace policy 647 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698