| 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..57fdc23fc61300cd20ea7f33c346cdae711c33ac 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,11 @@ 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(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(
|
|
|