Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Unified Diff: chrome/browser/ui/intents/web_intent_picker_controller.cc

Issue 10802066: Adds support for saving favicon size into history database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 01c4068ca1cc8b0b86e759c170f8a3fe1b85b914..9d05f1a0891c5d732be0c2ea25240bd87719e1ea 100644
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
@@ -583,8 +583,9 @@ void WebIntentPickerController::OnFaviconDataAvailable(
if (favicon_data.is_valid()) {
SkBitmap icon_bitmap;
- if (gfx::PNGCodec::Decode(favicon_data.image_data->front(),
- favicon_data.image_data->size(),
+ const history::FaviconDataElement& element = favicon_data.elements[0];
+ if (gfx::PNGCodec::Decode(element.bitmap_data->front(),
+ element.bitmap_data->size(),
&icon_bitmap)) {
gfx::Image icon_image(icon_bitmap);
picker_model_->UpdateFaviconAt(index, icon_image);

Powered by Google App Engine
This is Rietveld 408576698