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

Unified Diff: chrome/browser/ui/views/infobars/extension_infobar.cc

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/views/infobars/extension_infobar.cc
diff --git a/chrome/browser/ui/views/infobars/extension_infobar.cc b/chrome/browser/ui/views/infobars/extension_infobar.cc
index 646ec46a391ab39f72514e1fd4946c0a6988d359..0811dd7462cdc032778cd81d94992a99b8a17d52 100644
--- a/chrome/browser/ui/views/infobars/extension_infobar.cc
+++ b/chrome/browser/ui/views/infobars/extension_infobar.cc
@@ -108,18 +108,19 @@ void ExtensionInfoBar::OnImageLoaded(const gfx::Image& image,
if (!GetDelegate())
return; // The delegate can go away while we asynchronously load images.
- const SkBitmap* icon = NULL;
+ const gfx::ImageSkia* icon = NULL;
// Fall back on the default extension icon on failure.
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
if (image.IsEmpty())
- icon = rb.GetImageNamed(IDR_EXTENSIONS_SECTION).ToSkBitmap();
+ icon = rb.GetImageNamed(IDR_EXTENSIONS_SECTION).ToImageSkia();
else
- icon = image.ToSkBitmap();
+ icon = image.ToImageSkia();
- const SkBitmap* drop_image = rb.GetImageNamed(IDR_APP_DROPARROW).ToSkBitmap();
+ const gfx::ImageSkia* drop_image =
+ rb.GetImageNamed(IDR_APP_DROPARROW).ToImageSkia();
int image_size = ExtensionIconSet::EXTENSION_ICON_BITTY;
- // The margin between the extension icon and the drop-down arrow bitmap.
+ // The margin between the extension icon and the drop-down arrow image.
static const int kDropArrowLeftMargin = 3;
scoped_ptr<gfx::Canvas> canvas(new gfx::Canvas(
gfx::Size(image_size + kDropArrowLeftMargin + drop_image->width(),
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/location_bar/icon_label_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698