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

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: Address xiyuan@'s comment. Rebase 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/gfx_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index 09910bfd0556ed410621cd75efcea8c9c2acbbd0..3d798c8017989b1909d618f504bc4aea822a5d64 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -1676,10 +1676,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698