Index: chrome/browser/chromeos/login/user_image_loader.cc |
diff --git a/chrome/browser/chromeos/login/user_image_loader.cc b/chrome/browser/chromeos/login/user_image_loader.cc |
index 45f82284b05eb4b63aac1a7f0df683c8ee6176ee..da34f7dcf76fb6e469843227053efa59a9153121 100644 |
--- a/chrome/browser/chromeos/login/user_image_loader.cc |
+++ b/chrome/browser/chromeos/login/user_image_loader.cc |
@@ -92,11 +92,12 @@ void UserImageLoader::OnImageDecoded(const ImageDecoder* decoder, |
final_image = cropped_image; |
} |
} |
- |
+ gfx::ImageSkia final_image_skia(final_image); |
+ final_image_skia.MakeThreadSafe(); |
target_message_loop_->PostTask( |
FROM_HERE, |
base::Bind(image_info.loaded_cb, |
- UserImage(final_image, decoder->get_image_data()))); |
+ UserImage(final_image_skia, decoder->get_image_data()))); |
image_info_map_.erase(info_it); |
} |