Index: chrome/browser/chromeos/policy/user_policy_test_helper.cc |
diff --git a/chrome/browser/chromeos/policy/user_policy_test_helper.cc b/chrome/browser/chromeos/policy/user_policy_test_helper.cc |
index cbc2504bc4a80a71a7cf2c919a5079d57f91b048..aaaa9466860b06210750c65514c28151ad5be8cf 100644 |
--- a/chrome/browser/chromeos/policy/user_policy_test_helper.cc |
+++ b/chrome/browser/chromeos/policy/user_policy_test_helper.cc |
@@ -91,7 +91,8 @@ void UserPolicyTestHelper::WaitForInitialPolicy(Profile* profile) { |
connector->ScheduleServiceInitialization(0); |
UserCloudPolicyManagerChromeOS* const policy_manager = |
- UserCloudPolicyManagerFactoryChromeOS::GetForProfile(profile); |
+ UserCloudPolicyManagerFactoryChromeOS::GetCloudPolicyManagerForProfile( |
+ profile); |
// Give a bogus OAuth token to the |policy_manager|. This should make its |
// CloudPolicyClient fetch the DMToken. |