Index: chrome/browser/ui/intents/web_intent_picker_controller.cc |
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc |
index 506369a1e4c60880267a668a1512d17c7fa2ca0a..b8b9843c67bc9282e1cafd9beba723bb83cbf5fd 100644 |
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc |
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc |
@@ -509,7 +509,7 @@ void WebIntentPickerController::OnFaviconDataAvailable( |
if (gfx::PNGCodec::Decode(favicon_data.image_data->front(), |
favicon_data.image_data->size(), |
&icon_bitmap)) { |
- gfx::Image icon_image(new SkBitmap(icon_bitmap)); |
+ gfx::Image icon_image(icon_bitmap); |
picker_model_->UpdateFaviconAt(index, icon_image); |
return; |
} |
@@ -613,7 +613,7 @@ void WebIntentPickerController::DecodeExtensionIconAndResize( |
icon_bitmap, |
skia::ImageOperations::RESIZE_BEST, |
gfx::kFaviconSize, gfx::kFaviconSize); |
- gfx::Image icon_image(new SkBitmap(resized_icon)); |
+ gfx::Image icon_image(resized_icon); |
content::BrowserThread::PostTask( |
content::BrowserThread::UI, |