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

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

Issue 22597004: Move AvatarMenuModel::Item into ui/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@le_refactor_gigante_2
Patch Set: Created 7 years, 4 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_model_unittest.cc ('k') | chrome/browser/profiles/profile_info_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_info_util.h
diff --git a/chrome/browser/profiles/profile_info_util.h b/chrome/browser/profiles/profile_info_util.h
index f33d2b3966d44844fbe7b35b57e4abcfdc181a39..3105bcf758e0db7c7923da8593a57a45925cd877 100644
--- a/chrome/browser/profiles/profile_info_util.h
+++ b/chrome/browser/profiles/profile_info_util.h
@@ -7,6 +7,16 @@
#include "ui/gfx/image/image.h"
+class ProfileInfoInterface;
+
+namespace ui {
+struct AvatarMenuItemModel;
+}
+
+namespace base{
+class FilePath;
+}
+
namespace profiles {
extern const int kAvatarIconWidth;
@@ -35,6 +45,14 @@ gfx::Image GetAvatarIconForTitleBar(const gfx::Image& image,
int dst_width,
int dst_height);
-}
+// Populates |items| with AvatarMenuItemModels that are constructed from
+// profiles in the given |cache|. |active_profile_path| is optionally used to
+// specify the active profile.
+void PopulateAvatarMenuItemModels(
+ const ProfileInfoInterface* cache,
+ const base::FilePath& active_profile_path,
+ std::vector<ui::AvatarMenuItemModel*>* items);
+
+} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model_unittest.cc ('k') | chrome/browser/profiles/profile_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698