Index: chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc |
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc b/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc |
index 5f19e120312b21bb0534e8df82b7f2ec2961286f..b80ef5d7bd093c7588987ce44191c54b192b6e5a 100644 |
--- a/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc |
+++ b/chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc |
@@ -28,6 +28,7 @@ |
#include "chrome/browser/ui/browser.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
+#include "components/policy/core/common/policy_switches.h" |
#include "extensions/common/extension.h" |
#include "net/url_request/url_request_context_getter.h" |
#include "policy/proto/cloud_policy.pb.h" |
@@ -118,6 +119,7 @@ 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(); |
} |