| Index: chrome/browser/profiles/profile_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
|
| index b20c703842526f0394a0d84a81b1143887327592..24d66eae26287e9241b8db86487d36905c75ae85 100644
|
| --- a/chrome/browser/profiles/profile_manager.cc
|
| +++ b/chrome/browser/profiles/profile_manager.cc
|
| @@ -1332,8 +1332,10 @@ void ProfileManager::UpdateLastUser(Profile* last_active) {
|
| DCHECK(local_state);
|
| // Only keep track of profiles that we are managing; tests may create others.
|
| if (profiles_info_.find(last_active->GetPath()) != profiles_info_.end()) {
|
| - local_state->SetString(prefs::kProfileLastUsed,
|
| - last_active->GetPath().BaseName().MaybeAsASCII());
|
| + std::string profile_path_base =
|
| + last_active->GetPath().BaseName().MaybeAsASCII();
|
| + if (profile_path_base != local_state->GetString(prefs::kProfileLastUsed))
|
| + local_state->SetString(prefs::kProfileLastUsed, profile_path_base);
|
|
|
| ProfileInfoCache& cache = GetProfileInfoCache();
|
| size_t profile_index =
|
|
|