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

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: 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: 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 0fa3354391026d16543019b1d5f56b7054444399..44e9bfdce4c592dcbecad36586439488c2eaa13b 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);

Powered by Google App Engine
This is Rietveld 408576698