| Index: chrome/browser/ui/panels/panel_view.cc
|
| diff --git a/chrome/browser/ui/panels/panel_view.cc b/chrome/browser/ui/panels/panel_view.cc
|
| index e0dd484c6f500e2bb9f8c737e21c163ae2580ed2..47bc31fa4c808688de362f9a8f4864743f2e2c4f 100644
|
| --- a/chrome/browser/ui/panels/panel_view.cc
|
| +++ b/chrome/browser/ui/panels/panel_view.cc
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/ui/panels/panel_manager.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/render_widget_host_view.h"
|
| +#include "ui/gfx/image/image.h"
|
| #include "ui/gfx/path.h"
|
| #include "ui/gfx/screen.h"
|
| #include "ui/views/controls/button/image_button.h"
|
| @@ -446,7 +447,8 @@ string16 PanelView::GetWindowTitle() const {
|
| }
|
|
|
| gfx::ImageSkia PanelView::GetWindowIcon() {
|
| - return panel_->GetCurrentPageIcon();
|
| + gfx::Image icon = panel_->GetCurrentPageIcon();
|
| + return icon.IsEmpty() ? gfx::ImageSkia() : *icon.ToImageSkia();
|
| }
|
|
|
| void PanelView::DeleteDelegate() {
|
|
|