Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
index 38e6c601783cbbf697bf438379df6c1fc107d16d..725de479751a448df82b4a61567d94f9d5473f0d 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
@@ -948,7 +948,7 @@ void SigninScreenHandler::ShowUserPodCustomIcon( |
if (!user) |
return; |
PrefService* profile_prefs = |
- ProfileHelper::Get()->GetProfileByUser(user)->GetPrefs(); |
+ ProfileHelper::Get()->GetProfileByUserUnsafe(user)->GetPrefs(); |
if (profile_prefs->GetBoolean(prefs::kEasyUnlockShowTutorial)) { |
CallJS("login.AccountPickerScreen.showEasyUnlockBubble"); |
profile_prefs->SetBoolean(prefs::kEasyUnlockShowTutorial, false); |
@@ -1062,7 +1062,7 @@ void SigninScreenHandler::HandleAttemptUnlock(const std::string& username) { |
if (!unlock_user) |
return; |
- Profile* profile = ProfileHelper::Get()->GetProfileByUser(unlock_user); |
+ Profile* profile = ProfileHelper::Get()->GetProfileByUserUnsafe(unlock_user); |
extensions::ScreenlockPrivateEventRouter* router = |
extensions::ScreenlockPrivateEventRouter::GetFactoryInstance()->Get( |
profile); |