Chromium Code Reviews| Index: chrome/browser/profiles/profile_info_cache.h |
| diff --git a/chrome/browser/profiles/profile_info_cache.h b/chrome/browser/profiles/profile_info_cache.h |
| index d38fca1d17875d29ee5d570dcdfb9cad012e0f1b..3462c8eda8b55c77749a51defa5f8dd7675607dc 100644 |
| --- a/chrome/browser/profiles/profile_info_cache.h |
| +++ b/chrome/browser/profiles/profile_info_cache.h |
| @@ -136,10 +136,10 @@ class ProfileInfoCache : public ProfileInfoInterface, |
| // Register cache related preferences in Local State. |
| static void RegisterPrefs(PrefRegistrySimple* registry); |
| - // Starts downloading the high res avatar at index |icon_index| for profile |
| - // with path |profile_path|. |
| - void DownloadHighResAvatar(size_t icon_index, |
| - const base::FilePath& profile_path); |
| + // Checks whether the high res avatar at index |icon_index| exists, and |
| + // if it does not, calls |DownloadHighResAvatar|. |
| + void DownloadHighResAvatarIfNeeded(size_t icon_index, |
| + const base::FilePath& profile_path); |
| // Saves the avatar |image| at |image_path|. This is used both for the |
| // GAIA profile pictures and the ProfileAvatarDownloader that is used to |
| @@ -184,6 +184,12 @@ class ProfileInfoCache : public ProfileInfoInterface, |
| // generic profile avatar. |
| const gfx::Image* GetHighResAvatarOfProfileAtIndex(size_t index) const; |
| + // Starts downloading the high res avatar at index |icon_index| for profile |
| + // with path |profile_path|. |
| + void DownloadHighResAvatar(const std::string file_name, |
|
Mike Lerman
2015/01/27 16:39:15
nit: mention |file_name| in the comment, for compl
noms (inactive)
2015/01/28 02:18:35
Done.
|
| + size_t icon_index, |
| + const base::FilePath& profile_path); |
| + |
| // Returns the decoded image at |image_path|. Used both by the GAIA profile |
| // image and the high res avatars. |
| const gfx::Image* LoadAvatarPictureFromPath( |