Index: ui/gfx/icon_util.cc |
diff --git a/ui/gfx/icon_util.cc b/ui/gfx/icon_util.cc |
index 521c0410937671a4befa07315814e20b799c46a0..5ddf137e8ca9244cf0cc1f78e88c1da6d3491523 100644 |
--- a/ui/gfx/icon_util.cc |
+++ b/ui/gfx/icon_util.cc |
@@ -290,10 +290,8 @@ scoped_ptr<SkBitmap> IconUtil::CreateSkBitmapFromIconResource(HMODULE module, |
DCHECK(png_data); |
DCHECK_EQ(png_size, large_icon_entry->dwBytesInRes); |
- const unsigned char* png_bytes = |
- reinterpret_cast<const unsigned char*>(png_data); |
gfx::Image image = gfx::Image::CreateFrom1xPNGBytes( |
- new base::RefCountedStaticMemory(png_bytes, png_size)); |
+ new base::RefCountedStaticMemory(png_data, png_size)); |
return scoped_ptr<SkBitmap>(new SkBitmap(image.AsBitmap())); |
} |