| Index: chrome/browser/profiles/avatar_menu_actions_desktop.cc
|
| diff --git a/chrome/browser/profiles/avatar_menu_actions_desktop.cc b/chrome/browser/profiles/avatar_menu_actions_desktop.cc
|
| index 2ee503f48a81e443ac16de17eab73d64d601f16e..ca2f10b0577de31348dc1948efdfde2edab295b1 100644
|
| --- a/chrome/browser/profiles/avatar_menu_actions_desktop.cc
|
| +++ b/chrome/browser/profiles/avatar_menu_actions_desktop.cc
|
| @@ -112,8 +112,11 @@ content::WebContents* AvatarMenuActionsDesktop::BeginSignOut() {
|
| Profile* current_profile = browser_->profile();
|
|
|
| ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
|
| - size_t index = cache.GetIndexOfProfileWithPath(current_profile->GetPath());
|
| - cache.SetProfileSigninRequiredAtIndex(index, true);
|
| + ProfileInfoEntry entry;
|
| + cache.GetInfoForProfile(current_profile->GetPath(), &entry);
|
| +
|
| + entry.set_is_signin_required(true);
|
| + cache.SetInfoForProfile(entry);
|
|
|
| std::string landing_url = signin::GetLandingURL("close", 1).spec();
|
| GURL logout_url(GaiaUrls::GetInstance()->service_logout_url());
|
|
|