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

Unified Diff: chrome/browser/profiles/avatar_menu.h

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
Index: chrome/browser/profiles/avatar_menu.h
diff --git a/chrome/browser/profiles/avatar_menu.h b/chrome/browser/profiles/avatar_menu.h
index 80f24fd631bbc50ed0fc599f0a7af6b0f4dcfe06..0e0d5f49dfdf1dd67f43097a1d7961e3e0c6f9ef 100644
--- a/chrome/browser/profiles/avatar_menu.h
+++ b/chrome/browser/profiles/avatar_menu.h
@@ -65,8 +65,8 @@ class AvatarMenu : public content::NotificationObserver {
// profiles.
size_t menu_index;
- // The index in the |profile_cache| for this profile.
- size_t profile_index;
+ // The path where this profile is located.
+ base::FilePath profile_path;
};
// Constructor. |observer| can be NULL. |browser| can be NULL and a new one
@@ -112,8 +112,8 @@ class AvatarMenu : public content::NotificationObserver {
// Gets the Item at the specified index.
const Item& GetItemAt(size_t index) const;
- // Returns the index of the active profile.
- size_t GetActiveProfileIndex();
+ // Returns the item representing of the active profile.
+ const Item& GetActiveProfileItem() const;
// Returns information about a managed user which will be displayed in the
// avatar menu. If the profile does not belong to a managed user, an empty
« no previous file with comments | « chrome/browser/notifications/message_center_settings_controller.cc ('k') | chrome/browser/profiles/avatar_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698