Index: chrome/browser/ui/ash/app_list/extension_app_item.cc |
diff --git a/chrome/browser/ui/ash/app_list/extension_app_item.cc b/chrome/browser/ui/ash/app_list/extension_app_item.cc |
index e228db51e571bd6e5b35000b31cefb885e718dd4..3ddbc72350fd82948356a7f7a2df0aee307fdf1d 100644 |
--- a/chrome/browser/ui/ash/app_list/extension_app_item.cc |
+++ b/chrome/browser/ui/ash/app_list/extension_app_item.cc |
@@ -169,10 +169,16 @@ void ExtensionAppItem::StartExtensionUninstall() { |
void ExtensionAppItem::OnImageLoaded(const gfx::Image& image, |
const std::string& extension_id, |
int tracker_index) { |
- if (!image.IsEmpty()) |
- SetIcon(*image.ToImageSkia()); |
- else |
- SetIcon(Extension::GetDefaultIcon(true /* is_app */)); |
+ LOG(ERROR) << "empty:" << image.IsEmpty(); |
+ if (!image.IsEmpty()) { |
+ gfx::ImageSkia image_skia = *image.ToImageSkia(); |
+ image_skia.SetReadOnly(); |
+ SetIcon(image_skia); |
+ } else { |
+ gfx::ImageSkia image_skia(Extension::GetDefaultIcon(true /* is_app */)); |
+ image_skia.SetReadOnly(); |
+ SetIcon(image_skia); |
+ } |
} |
bool ExtensionAppItem::IsItemForCommandIdDynamic(int command_id) const { |