Index: chrome/browser/chromeos/login/fake_login_utils.cc |
diff --git a/chrome/browser/chromeos/login/fake_login_utils.cc b/chrome/browser/chromeos/login/fake_login_utils.cc |
index 7a0dd04492a39d0932e58d74b84c73af4a380387..085d8520d2f4e0e7b6c61bf9e8c07488fb28ae4a 100644 |
--- a/chrome/browser/chromeos/login/fake_login_utils.cc |
+++ b/chrome/browser/chromeos/login/fake_login_utils.cc |
@@ -73,7 +73,7 @@ void FakeLoginUtils::PrepareProfile(const UserContext& user_context, |
// Make sure that we get the real Profile instead of the login Profile. |
user->set_profile_is_created(); |
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(user); |
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(user); |
profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, |
user_context.GetUserID()); |