Chromium Code Reviews| 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..9969ec02e7766d2aa49a337fdc041efd555f6944 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( |
| + std::vector<ui::AvatarMenuItemModel*>& items, |
| + const ProfileInfoInterface* cache, |
| + const base::FilePath active_profile_path); |
|
tapted
2013/07/31 05:43:53
nit: const-reference?
calamity
2013/08/01 08:35:45
Done.
|
| + |
| +} // namespace profiles |
| #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_UTIL_H_ |