Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1074)

Unified Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 445353004: GetProfileByUser deprecated and renamed to GetProfileByUserUnsafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698