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

Unified Diff: chrome/browser/ui/cocoa/history_menu_bridge.mm

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, 5 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/cocoa/history_menu_bridge.mm
diff --git a/chrome/browser/ui/cocoa/history_menu_bridge.mm b/chrome/browser/ui/cocoa/history_menu_bridge.mm
index 22e83c4eb181e283788f124ff9d4f70fcb3323b7..d6120a2f3d4712ddf21a9a4b24d978b700e9ae7e 100644
--- a/chrome/browser/ui/cocoa/history_menu_bridge.mm
+++ b/chrome/browser/ui/cocoa/history_menu_bridge.mm
@@ -471,8 +471,8 @@ void HistoryMenuBridge::GotFaviconData(FaviconService::Handle handle,
// TODO(rsesek): Is there an easier way to do this?
SkBitmap icon;
if (favicon.is_valid() &&
- gfx::PNGCodec::Decode(favicon.image_data->front(),
- favicon.image_data->size(), &icon)) {
+ gfx::PNGCodec::Decode(favicon.bitmap_data->front(),
+ favicon.bitmap_data->size(), &icon)) {
NSImage* image = gfx::SkBitmapToNSImage(icon);
if (image) {
// The conversion was successful.

Powered by Google App Engine
This is Rietveld 408576698