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

Unified Diff: chrome/browser/ui/web_applications/web_app_ui.cc

Issue 9586018: Add support for multiple icon sizes for Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 years, 10 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
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) {

Powered by Google App Engine
This is Rietveld 408576698