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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_icon.cc

Issue 2358073002: arc: Use high-resolution icon for Play Store default item in app list. (Closed)
Patch Set: Created 4 years, 3 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/resources/component_extension_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/arc/arc_app_icon.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_icon.cc b/chrome/browser/ui/app_list/arc/arc_app_icon.cc
index cc7cd550cf69333ed7f9db32b68a760de39bebf2..596660b0c227052f7d4170d42d49d20799f09ace 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_icon.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_icon.cc
@@ -85,8 +85,13 @@ gfx::ImageSkiaRep ArcAppIcon::Source::GetImageForScale(float scale) {
host_->LoadForScaleFactor(ui::GetSupportedScaleFactor(scale));
// Host loads icon asynchronously, so use default icon so far.
- const int resource_id = host_ && host_->app_id() == arc::kPlayStoreAppId ?
- IDR_ARC_SUPPORT_ICON : IDR_APP_DEFAULT_ICON;
+ int resource_id;
+ if (host_ && host_->app_id() == arc::kPlayStoreAppId) {
+ resource_id = scale >= 1.5f ?
+ IDR_ARC_SUPPORT_ICON_48 : IDR_ARC_SUPPORT_ICON_96;
+ } else {
+ resource_id = IDR_APP_DEFAULT_ICON;
+ }
const gfx::ImageSkia* default_image = ResourceBundle::GetSharedInstance().
GetImageSkiaNamed(resource_id);
CHECK(default_image);
« no previous file with comments | « chrome/browser/resources/component_extension_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698