| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index df865407d29459816c6de0c5a1daa55b0c522f3b..19ad8271de91a5bd536fb60a3d9ca4cc2f00875c 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -765,6 +765,12 @@ void ProfileManager::BrowserListObserver::OnBrowserSetLastActive(
|
| return;
|
|
|
| Profile* last_active = browser->profile();
|
| + ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache();
|
| + size_t profile_index =
|
| + cache.GetIndexOfProfileWithPath(last_active->GetPath());
|
| + if (profile_index != std::string::npos) {
|
| + cache.SetProfileActive(profile_index);
|
| + }
|
|
|
| // Don't remember ephemeral profiles as last because they are not going to
|
| // persist after restart.
|
|
|