| Index: chrome/browser/extensions/extension_web_ui.cc
|
| diff --git a/chrome/browser/extensions/extension_web_ui.cc b/chrome/browser/extensions/extension_web_ui.cc
|
| index c74c4337f5346c9e284bc29fc6cb4df67b04a3fe..aee6b8b801fae4c1c63a89b6952fcb65356c0297 100644
|
| --- a/chrome/browser/extensions/extension_web_ui.cc
|
| +++ b/chrome/browser/extensions/extension_web_ui.cc
|
| @@ -88,11 +88,13 @@ class ExtensionWebUIImageLoadingTracker : public ImageLoadingTracker::Observer {
|
| }
|
| }
|
|
|
| - virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource,
|
| - int index) {
|
| + virtual void OnImageLoaded(const gfx::Image* image,
|
| + const std::string& extension_id,
|
| + int index) OVERRIDE {
|
| if (image) {
|
| std::vector<unsigned char> image_data;
|
| - if (!gfx::PNGCodec::EncodeBGRASkBitmap(*image, false, &image_data)) {
|
| + if (!gfx::PNGCodec::EncodeBGRASkBitmap(*image->ToSkBitmap(), false,
|
| + &image_data)) {
|
| NOTREACHED() << "Could not encode extension favicon";
|
| }
|
| ForwardResult(RefCountedBytes::TakeVector(&image_data));
|
|
|