Index: chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc |
diff --git a/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc b/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc |
index 5ae03d64722768f2825c8efb682c4fb9f25086bf..f893d429a0854822524b99964f921b727789aaa3 100644 |
--- a/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc |
+++ b/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc |
@@ -39,6 +39,7 @@ |
#include "ui/base/gtk/gtk_compat.h" |
#include "ui/gfx/canvas_skia_paint.h" |
#include "ui/gfx/gtk_util.h" |
+#include "ui/gfx/image/image.h" |
namespace { |
@@ -160,11 +161,12 @@ class BrowserActionButton : public content::NotificationObserver, |
} |
// ImageLoadingTracker::Observer implementation. |
- void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource, |
- int index) { |
+ void OnImageLoaded(const gfx::Image* image, |
+ const std::string& extension_id, |
+ int index) OVERRIDE { |
if (image) { |
- default_skbitmap_ = *image; |
- default_icon_ = gfx::GdkPixbufFromSkBitmap(image); |
+ default_skbitmap_ = image->ToSkBitmap(); |
Mihai Parparita -not on Chrome
2012/02/23 00:19:41
Seems like this should be *image->ToSkBitmap()
sail
2012/02/23 02:54:27
Done.
|
+ default_icon_ = image->ToGdkPixbuf(); |
} |
UpdateState(); |
} |