Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2940)

Unified Diff: chrome/browser/profiles/avatar_menu_actions_desktop.cc

Issue 33753002: Sooper experimental refactoring of the profile info cache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/avatar_menu.cc ('k') | chrome/browser/profiles/avatar_menu_desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « chrome/browser/profiles/avatar_menu.cc ('k') | chrome/browser/profiles/avatar_menu_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698