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

Unified Diff: ash/shelf/shelf_view.cc

Issue 2067943004: ARC: Add badge for Chrome hosted Apps if Arc++ is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the failed unittest. Created 4 years, 6 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/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index 9b7ab390b65328c4549db70a3f15888179c9fd9b..2aa611e994d42d67ea07d82a98d6b2872dbd00f6 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -1650,10 +1650,7 @@ void ShelfView::ShelfItemChanged(int model_index, const ShelfItem& old_item) {
CHECK_EQ(ShelfButton::kViewClassName, view->GetClassName());
ShelfButton* button = static_cast<ShelfButton*>(view);
ReflectItemStatus(item, button);
- // The browser shortcut is currently not a "real" item and as such the
- // the image is bogous as well. We therefore keep the image as is for it.
- if (item.type != TYPE_BROWSER_SHORTCUT)
- button->SetImage(item.image);
+ button->SetImage(item.image);
button->SchedulePaint();
break;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/gfx_utils.h » ('j') | chrome/browser/chromeos/extensions/gfx_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698