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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 8539043: Refactor ProfileInfoCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index c3de07b3422063780a43bf54af0681a1c61a5310..2d62caa2db4052dd97d73d90aa3f544c9353a468 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1372,10 +1372,9 @@ enum {
ProfileInfoCache& cache =
g_browser_process->profile_manager()->GetProfileInfoCache();
- if (cache.GetIndexOfProfileWithPath(browser_->profile()->GetPath()) ==
- std::string::npos) {
+ ProfileInfoEntry entry;
+ if (!cache.GetInfoForProfile(browser_->profile()->GetPath(), &entry))
return NO;
- }
return AvatarMenuModel::ShouldShowAvatarMenu();
}
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_button_controller.mm ('k') | chrome/browser/ui/webui/options/manage_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698