| Index: chrome/browser/ui/gtk/infobars/infobar_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/infobars/infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/infobar_gtk.cc
|
| index 95d5b79588a67383e6b1489489ac37260a1c257e..a8b77bca709a57b3624d9b5597c2244840d0e648 100644
|
| --- a/chrome/browser/ui/gtk/infobars/infobar_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/infobars/infobar_gtk.cc
|
| @@ -91,9 +91,9 @@ void InfoBarGtk::InitWidgets() {
|
| gtk_container_add(GTK_CONTAINER(bg_box_), padding);
|
|
|
| // Add the icon on the left, if any.
|
| - gfx::Image* icon = delegate()->GetIcon();
|
| - if (icon) {
|
| - GtkWidget* image = gtk_image_new_from_pixbuf(icon->ToGdkPixbuf());
|
| + gfx::Image icon = delegate()->GetIcon();
|
| + if (!icon.IsEmpty()) {
|
| + GtkWidget* image = gtk_image_new_from_pixbuf(icon.ToGdkPixbuf());
|
|
|
| gtk_misc_set_alignment(GTK_MISC(image), 0.5, 0.5);
|
|
|
|
|