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

Unified Diff: chrome/browser/chromeos/login/users/multi_profile_user_controller.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/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(

Powered by Google App Engine
This is Rietveld 408576698