Index: chrome/browser/policy/cloud_policy_browsertest.cc |
diff --git a/chrome/browser/policy/cloud_policy_browsertest.cc b/chrome/browser/policy/cloud_policy_browsertest.cc |
index 3149d4858764b7640b8cbd3af7856ebba15057fb..0e8f100c0c8e6ff28051834418d71041cdbc18b0 100644 |
--- a/chrome/browser/policy/cloud_policy_browsertest.cc |
+++ b/chrome/browser/policy/cloud_policy_browsertest.cc |
@@ -171,7 +171,8 @@ class CloudPolicyTest : public InProcessBrowserTest { |
UserCloudPolicyManagerFactory::GetForProfile(browser()->profile()); |
ASSERT_TRUE(policy_manager); |
policy_manager->Connect(g_browser_process->local_state(), |
- connector->device_management_service()); |
+ UserCloudPolicyManager::CreateCloudPolicyClient( |
+ connector->device_management_service()).Pass()); |
#endif // defined(OS_CHROMEOS) |
ASSERT_TRUE(policy_manager->core()->client()); |