Index: ui/base/resource/resource_bundle_gtk.cc |
diff --git a/ui/base/resource/resource_bundle_gtk.cc b/ui/base/resource/resource_bundle_gtk.cc |
index 2578dc29d3727330a29c6eb08aa02c0090eceb9d..871f9a4a9f69d3e72ee556e1d2a0f7ec9138c3f5 100644 |
--- a/ui/base/resource/resource_bundle_gtk.cc |
+++ b/ui/base/resource/resource_bundle_gtk.cc |
@@ -28,7 +28,7 @@ namespace { |
GdkPixbuf* LoadPixbuf(base::RefCountedStaticMemory* data, bool rtl_enabled) { |
ScopedGObject<GdkPixbufLoader>::Type loader(gdk_pixbuf_loader_new()); |
bool ok = data && gdk_pixbuf_loader_write(loader.get(), |
- reinterpret_cast<const guint8*>(data->front()), data->size(), NULL); |
+ data->front_as<guint8>(), data->size(), NULL); |
if (!ok) |
return NULL; |
// Calling gdk_pixbuf_loader_close forces the data to be parsed by the |