Index: chrome/browser/ui/web_applications/web_app_ui.cc |
diff --git a/chrome/browser/ui/web_applications/web_app_ui.cc b/chrome/browser/ui/web_applications/web_app_ui.cc |
index 1d3103a6e6e9c768b7d29bc971be01138a9d87a0..c4089874349199bb2eae6e1593d631a7ecdd129e 100644 |
--- a/chrome/browser/ui/web_applications/web_app_ui.cc |
+++ b/chrome/browser/ui/web_applications/web_app_ui.cc |
@@ -162,7 +162,7 @@ void UpdateShortcutWorker::OnIconDownloaded(int download_id, |
if (!errored && !image.isNull()) { |
// Update icon with download image and update shortcut. |
- shortcut_info_.favicon = image; |
+ shortcut_info_.favicon = gfx::Image(image); |
tab_contents_->extension_tab_helper()->SetAppIcon(image); |
UpdateShortcuts(); |
} else { |
@@ -309,7 +309,8 @@ void GetShortcutInfoForTab(TabContentsWrapper* tab_contents_wrapper, |
web_contents->GetTitle()) : |
app_info.title; |
info->description = app_info.description; |
- info->favicon = tab_contents_wrapper->favicon_tab_helper()->GetFavicon(); |
+ info->favicon = |
+ gfx::Image(tab_contents_wrapper->favicon_tab_helper()->GetFavicon()); |
} |
void UpdateShortcutForTabContents(TabContentsWrapper* tab_contents) { |