Chromium Code Reviews| 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); |
|
benwells
2016/06/16 07:45:43
Why do you have to do this here and in all the UI
xdai1
2016/06/16 17:00:13
From my understanding, this work is mostly for exp
|
| +#endif |
| + |
| if (!util::IsAppLaunchable(id, profile())) { |
| const color_utils::HSL shift = {-1, 0, 0.6}; |
| image = gfx::ImageSkiaOperations::CreateHSLShiftedImage(image, shift); |