Index: chrome/browser/chromeos/login/users/multi_profile_user_controller.cc |
diff --git a/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc b/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc |
index 4f325edcb8eeb6dfbca139054af1994c268919b7..1d315d305560b3508157528e5820ba61058b4950 100644 |
--- a/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc |
+++ b/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc |
@@ -126,7 +126,7 @@ bool MultiProfileUserController::IsUserAllowedInSession( |
// used them yet then it can become tainted at any time during this session; |
// disable secondary profiles in this case too. |
Profile* primary_user_profile = |
- primary_user ? ProfileHelper::Get()->GetProfileByUser(primary_user) |
+ primary_user ? ProfileHelper::Get()->GetProfileByUserUnsafe(primary_user) |
: NULL; |
policy::PolicyCertService* service = |
primary_user_profile ? policy::PolicyCertServiceFactory::GetForProfile( |