| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index 711740c2d4c745eedcbaff599a5fdc223413460d..e1811db1192a6e6963cc2457c68576626205ba9e 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -1196,6 +1196,12 @@ void ProfileManager::BrowserListObserver::OnBrowserSetLastActive(
|
| last_active->GetPath()) != profile_manager_->profiles_info_.end()) {
|
| local_state->SetString(prefs::kProfileLastUsed,
|
| last_active->GetPath().BaseName().MaybeAsASCII());
|
| +
|
| + ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache();
|
| + size_t profile_index =
|
| + cache.GetIndexOfProfileWithPath(last_active->GetPath());
|
| + if (profile_index != std::string::npos)
|
| + cache.SetProfileActiveTimeAtIndex(profile_index);
|
| }
|
| }
|
| #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
|
|
|