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

Unified Diff: ash/launcher/launcher_button.cc

Issue 10868003: chromeos: Fix pixelated icons in app list and launcher (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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: ash/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index dfbeb4c9b0577dc5a9b8b99283a8433ac067085b..74b29a34646902943e3d601fcd54b29b657e1dcf 100644
--- a/ash/launcher/launcher_button.cc
+++ b/ash/launcher/launcher_button.cc
@@ -146,7 +146,7 @@ void LauncherButton::SetShadowedImage(const gfx::ImageSkia& image) {
}
void LauncherButton::SetImage(const gfx::ImageSkia& image) {
- if (image.isNull()) {
+ if (image.isNull() || image.image_reps().size() == 0) {
// TODO: need an empty image.
icon_view_->SetImage(image);
return;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_icon_image.h » ('j') | chrome/browser/extensions/extension_icon_image.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698