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

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.cc

Issue 10537073: [cros] Fix broken profile image on Options/Change picture page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/chromeos/login/user_manager_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager_impl.cc
diff --git a/chrome/browser/chromeos/login/user_manager_impl.cc b/chrome/browser/chromeos/login/user_manager_impl.cc
index 8607cd1f5c2fb6aa8e450718eed1f1c6c497a47e..d1b119812d1862f4e4c319a668011802e53ad0ac 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.cc
+++ b/chrome/browser/chromeos/login/user_manager_impl.cc
@@ -1425,10 +1425,13 @@ void UserManagerImpl::OnDownloadComplete(ProfileDownloader* downloader,
}
if (result == kDownloadSuccess) {
+ // TODO(ivankr): temporary measure until UserManager is fully migrated
+ // to use ImageSkia instead of SkBitmap.
+ gfx::ImageSkia profile_image(downloaded_profile_image_);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_IMAGE_UPDATED,
content::Source<UserManagerImpl>(this),
- content::Details<const SkBitmap>(&downloaded_profile_image_));
+ content::Details<const gfx::ImageSkia>(&profile_image));
} else {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_IMAGE_UPDATE_FAILED,
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698