Chromium Code Reviews| 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 |