Enable fetching cloud policy for extensions by default.

BUG=361156

Review URL: https://codereview.chromium.org/250383004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275477 0039d316-1c4b-4281-b951-d872f2087c98
parent fe0c63f0
......@@ -125,7 +125,6 @@ class ComponentCloudPolicyTest : public ExtensionBrowserTest {
std::string url = test_server_.GetServiceURL().spec();
CommandLine* command_line = CommandLine::ForCurrentProcess();
command_line->AppendSwitchASCII(switches::kDeviceManagementUrl, url);
command_line->AppendSwitch(switches::kEnableComponentCloudPolicy);
ExtensionBrowserTest::SetUpInProcessBrowserTestFixture();
}
......
......@@ -114,8 +114,8 @@ void CloudPolicyManager::CreateComponentCloudPolicyService(
// Called at most once.
DCHECK(!component_policy_service_);
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableComponentCloudPolicy) ||
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableComponentCloudPolicy) ||
policy_cache_path.empty()) {
return;
}
......
......@@ -11,13 +11,13 @@ namespace switches {
// management backend.
const char kDeviceManagementUrl[] = "device-management-url";
// Enables fetching and storing cloud policy for components.
const char kEnableComponentCloudPolicy[] = "enable-component-cloud-policy";
// Disables fetching and storing cloud policy for components.
const char kDisableComponentCloudPolicy[] = "disable-component-cloud-policy";
// Disables the verification of policy signing keys.
// TODO(atwilson): Remove this once all test servers have been updated to
// produce verification signatures.
const char kDisablePolicyKeyVerification[] = "disable-policy-key-verification";
const char kDisablePolicyKeyVerification[] = "disable-policy-key-verification";
#if defined(OS_ANDROID) || defined(OS_IOS)
// Registers for cloud policy using the BROWSER client type instead of the
......
......@@ -13,7 +13,7 @@ namespace policy {
namespace switches {
POLICY_EXPORT extern const char kDeviceManagementUrl[];
POLICY_EXPORT extern const char kEnableComponentCloudPolicy[];
POLICY_EXPORT extern const char kDisableComponentCloudPolicy[];
POLICY_EXPORT extern const char kDisablePolicyKeyVerification[];
#if defined(OS_ANDROID) || defined(OS_IOS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment