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

Unified Diff: chrome/browser/ui/app_list/extension_app_item.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
Index: chrome/browser/ui/app_list/extension_app_item.cc
diff --git a/chrome/browser/ui/app_list/extension_app_item.cc b/chrome/browser/ui/app_list/extension_app_item.cc
index 8263306acb2aec53275b7a677247d8d3f02e06b9..5263c371e355c80d814683f2c2e4b5c29c20f694 100644
--- a/chrome/browser/ui/app_list/extension_app_item.cc
+++ b/chrome/browser/ui/app_list/extension_app_item.cc
@@ -33,6 +33,10 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/image/canvas_image_source.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/extensions/gfx_utils.h"
+#endif
+
using extensions::Extension;
namespace {
@@ -169,6 +173,10 @@ void ExtensionAppItem::UpdateIcon() {
icon = icon_->image_skia();
const bool enabled = extensions::util::IsAppLaunchable(extension_id(),
profile());
+#if defined(OS_CHROMEOS)
+ extensions::util::MaybeApplyChromeBadge(profile(), id(), &icon);
+#endif
+
if (!enabled)
icon = CreateDisabledIcon(icon);
« no previous file with comments | « chrome/browser/extensions/extension_app_icon_loader.cc ('k') | chrome/browser/ui/app_list/extension_app_model_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698