Index: chrome/browser/profiles/profile_avatar_downloader.cc |
diff --git a/chrome/browser/profiles/profile_avatar_downloader.cc b/chrome/browser/profiles/profile_avatar_downloader.cc |
index 69f4a4c94130debd1adb8a4ae19a419b63130465..1acd64ae5caff8a441d44367b40aca0cfd4d7644 100644 |
--- a/chrome/browser/profiles/profile_avatar_downloader.cc |
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc |
@@ -19,10 +19,10 @@ const char kHighResAvatarDownloadUrlPrefix[] = |
ProfileAvatarDownloader::ProfileAvatarDownloader( |
size_t icon_index, |
const base::FilePath& profile_path, |
- ProfileInfoCache* cache) |
+ ProfileAttributesStorage* storage) |
: icon_index_(icon_index), |
profile_path_(profile_path), |
- cache_(cache) { |
+ storage_(storage) { |
GURL url(std::string(kHighResAvatarDownloadUrlPrefix) + |
profiles::GetDefaultAvatarIconFileNameAtIndex(icon_index)); |
fetcher_.reset(new chrome::BitmapFetcher(url, this)); |
@@ -48,12 +48,13 @@ void ProfileAvatarDownloader::Start() { |
// BitmapFetcherDelegate overrides. |
void ProfileAvatarDownloader::OnFetchComplete(const GURL& url, |
const SkBitmap* bitmap) { |
- if (!bitmap || !cache_) |
+ if (!bitmap || !storage_) |
return; |
- // Decode the downloaded bitmap. Ownership of the image is taken by |cache_|. |
+ // Decode the downloaded bitmap. |
+ // Ownership of the image is taken by |storage_|. |
gfx::Image image = gfx::Image::CreateFrom1xBitmap(*bitmap); |
- cache_->SaveAvatarImageAtPath(&image, |
+ storage_->SaveAvatarImageAtPath(&image, |
profiles::GetDefaultAvatarIconFileNameAtIndex(icon_index_), |
profiles::GetPathOfHighResAvatarAtIndex(icon_index_), |
profile_path_); |