Commit 74afbf8b authored by hshi's avatar hshi Committed by Commit bot

arc: Use high-resolution icon for Play Store default item for scale >= 1.5f.

There was previously a typo in this line. We should pick the high-resolution
icon when scale >= 1.5f and the low-resolution icon otherwise.

BUG=648998
BUG=b/31596656
TEST=samus verify icon is high resolution in app list before arc opt-in
TBR=xiyuan

Review-Url: https://codereview.chromium.org/2360873004
Cr-Commit-Position: refs/heads/master@{#420572}
parent 06af5b62
...@@ -88,7 +88,7 @@ gfx::ImageSkiaRep ArcAppIcon::Source::GetImageForScale(float scale) { ...@@ -88,7 +88,7 @@ gfx::ImageSkiaRep ArcAppIcon::Source::GetImageForScale(float scale) {
int resource_id; int resource_id;
if (host_ && host_->app_id() == arc::kPlayStoreAppId) { if (host_ && host_->app_id() == arc::kPlayStoreAppId) {
resource_id = scale >= 1.5f ? resource_id = scale >= 1.5f ?
IDR_ARC_SUPPORT_ICON_48 : IDR_ARC_SUPPORT_ICON_96; IDR_ARC_SUPPORT_ICON_96 : IDR_ARC_SUPPORT_ICON_48;
} else { } else {
resource_id = IDR_APP_DEFAULT_ICON; resource_id = IDR_APP_DEFAULT_ICON;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment