diff options
-rw-r--r-- | chrome/browser/profiles/profile_manager.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc index 7658aed..ad1f14a 100644 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc @@ -373,8 +373,11 @@ Profile* ProfileManager::GetLastUsedProfile( profile_dir = chromeos::ProfileHelper::GetProfileDirByLegacyLoginProfileSwitch(); } + base::FilePath profile_path(user_data_dir); - return GetProfile(profile_path.Append(profile_dir)); + Profile* profile = GetProfile(profile_path.Append(profile_dir)); + return (profile && profile->IsGuestSession()) ? + profile->GetOffTheRecordProfile() : profile; } #endif |