| Index: chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
|
| diff --git a/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc b/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
|
| index c3c3fd0792dedd65ed66352cc4250059d36fc117..70b364c703c6d538aa9a1ead6150c56de192b690 100644
|
| --- a/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
|
| +++ b/chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc
|
| @@ -17,10 +17,10 @@
|
| #include "content/public/browser/web_contents.h"
|
| #include "grit/generated_resources.h"
|
| #include "grit/theme_resources.h"
|
| -#include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/base/gtk/gtk_compat.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| +#include "ui/gfx/image/image.h"
|
| #include "ui/gfx/skia_utils_gtk.h"
|
|
|
| namespace {
|
| @@ -235,15 +235,14 @@ void PanelBrowserTitlebarGtk::UpdateThrobber(
|
| } else {
|
| ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
|
|
|
| - SkBitmap icon = browser_window_->panel()->GetCurrentPageIcon();
|
| - if (icon.empty()) {
|
| + gfx::Image icon = browser_window_->panel()->GetCurrentPageIcon();
|
| + if (icon.IsEmpty()) {
|
| // Fallback to the Chromium icon if the page has no icon.
|
| gtk_image_set_from_pixbuf(GTK_IMAGE(icon_),
|
| rb.GetNativeImageNamed(IDR_PRODUCT_LOGO_16).ToGdkPixbuf());
|
| } else {
|
| - GdkPixbuf* icon_pixbuf = gfx::GdkPixbufFromSkBitmap(icon);
|
| + GdkPixbuf* icon_pixbuf = icon.ToGdkPixbuf();
|
| gtk_image_set_from_pixbuf(GTK_IMAGE(icon_), icon_pixbuf);
|
| - g_object_unref(icon_pixbuf);
|
| }
|
|
|
| throbber_.Reset();
|
|
|