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

Unified Diff: extensions/browser/app_window/app_window.cc

Issue 2804623004: arc: Restore Chrome badging for apps that have peer in Android apps. (Closed)
Patch Set: update Created 3 years, 8 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: extensions/browser/app_window/app_window.cc
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index 6d52ad22e934d4cd93892d50f5f57a97cc8d0a75..0aeb0a93406bbf2ccfa3fe92dc4632193b0d0028 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -595,7 +595,8 @@ void AppWindow::UpdateAppIcon(const gfx::Image& image) {
// Set the showInShelf=true window icon and add the app_icon_image_
// as a badge. If the image is empty, set the default app icon placeholder
// as the base image.
- if (window_icon_url_.is_valid() && !app_icon_image_->image().IsEmpty()) {
+ if (window_icon_url_.is_valid() && app_icon_image_ &&
khmel 2017/04/06 19:08:59 this fixes crash when icon is set but not showInSh
+ !app_icon_image_->image().IsEmpty()) {
gfx::Image base_image =
!image.IsEmpty()
? image

Powered by Google App Engine
This is Rietveld 408576698