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

Unified Diff: chrome/browser/extensions/extension_app_icon_loader.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 | « chrome/browser/chromeos/extensions/gfx_utils.cc ('k') | chrome/browser/ui/app_list/extension_app_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_app_icon_loader.cc
diff --git a/chrome/browser/extensions/extension_app_icon_loader.cc b/chrome/browser/extensions/extension_app_icon_loader.cc
index 4d292ba6715d5ea9f404b884c98c11e7780757c1..fb941e5d57302fc56e502d90fec16f02b6f074bb 100644
--- a/chrome/browser/extensions/extension_app_icon_loader.cc
+++ b/chrome/browser/extensions/extension_app_icon_loader.cc
@@ -15,6 +15,10 @@
#include "ui/gfx/color_utils.h"
#include "ui/gfx/image/image_skia_operations.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/extensions/gfx_utils.h"
+#endif
+
namespace {
const extensions::Extension* GetExtensionByID(Profile* profile,
@@ -92,6 +96,10 @@ void ExtensionAppIconLoader::BuildImage(const std::string& id,
const gfx::ImageSkia& icon) {
gfx::ImageSkia image = icon;
+#if defined(OS_CHROMEOS)
+ util::MaybeApplyChromeBadge(profile(), id, &image);
+#endif
+
if (!util::IsAppLaunchable(id, profile())) {
const color_utils::HSL shift = {-1, 0, 0.6};
image = gfx::ImageSkiaOperations::CreateHSLShiftedImage(image, shift);
« no previous file with comments | « chrome/browser/chromeos/extensions/gfx_utils.cc ('k') | chrome/browser/ui/app_list/extension_app_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698