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

Unified Diff: chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.mm

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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/toolbar/back_forward_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.mm b/chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.mm
index 97a6e52a7f8dd31df0ad43279ef562db36c7e564..7e7311cb3ad8b8d6bcd53d68ca80d69f0f152c20 100644
--- a/chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.mm
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/toolbar/back_forward_menu_model.h"
#include "skia/ext/skia_utils_mac.h"
#include "third_party/skia/include/core/SkBitmap.h"
+#include "ui/gfx/image/image_skia.h"
using base::SysUTF16ToNSString;
using gfx::SkBitmapToNSImage;
@@ -71,10 +72,10 @@ using gfx::SkBitmapToNSImage;
keyEquivalent:@""];
[menuItem autorelease];
- SkBitmap icon;
+ gfx::ImageSkia icon;
// Icon (if it has one).
if (model_->GetIconAt(menuID, &icon))
- [menuItem setImage:SkBitmapToNSImage(icon)];
+ [menuItem setImage:SkBitmapToNSImage(*icon.bitmap())];
// This will make it call our |-executeMenuItem:| method. We store the
// |menuID| (or |menu_id|) in the tag.

Powered by Google App Engine
This is Rietveld 408576698