Index: chrome/browser/chromeos/login/user_manager_impl.cc |
diff --git a/chrome/browser/chromeos/login/user_manager_impl.cc b/chrome/browser/chromeos/login/user_manager_impl.cc |
index 5c407715a771ab8a8d96bbdfa00991c088c5f20a..db4dd135d7c3e31d60c335d2902ff76fc7861b2e 100644 |
--- a/chrome/browser/chromeos/login/user_manager_impl.cc |
+++ b/chrome/browser/chromeos/login/user_manager_impl.cc |
@@ -609,10 +609,10 @@ Profile* UserManagerImpl::GetProfileByUser(const User* user) const { |
if (IsMultipleProfilesAllowed() && user->is_profile_created()) |
profile = ProfileHelper::GetProfileByUserIdHash(user->username_hash()); |
else |
- profile = g_browser_process->profile_manager()->GetDefaultProfile(); |
+ profile = ProfileManager::GetActiveUserProfile(); |
- // GetDefaultProfile() or GetProfileByUserIdHash() returns a new instance of |
- // ProfileImpl(), but actually its OffTheRecordProfile() should be used. |
+ // GetActiveUserProfile() or GetProfileByUserIdHash() returns a new instance |
+ // of ProfileImpl(), but actually its OffTheRecordProfile() should be used. |
if (profile && IsLoggedInAsGuest()) |
profile = profile->GetOffTheRecordProfile(); |
return profile; |