Index: chrome/browser/devtools/browser_list_tabcontents_provider.cc |
diff --git a/chrome/browser/devtools/browser_list_tabcontents_provider.cc b/chrome/browser/devtools/browser_list_tabcontents_provider.cc |
index ac75d4024943b16baa13067a2ce5b74cfbadba42..0a9f70cec53074016811ece0d3c1e3cb26780b5f 100644 |
--- a/chrome/browser/devtools/browser_list_tabcontents_provider.cc |
+++ b/chrome/browser/devtools/browser_list_tabcontents_provider.cc |
@@ -78,8 +78,7 @@ std::string BrowserListTabContentsProvider::GetPageThumbnailData( |
continue; |
scoped_refptr<base::RefCountedMemory> data; |
if (top_sites->GetPageThumbnail(url, false, &data)) |
- return std::string( |
- reinterpret_cast<const char*>(data->front()), data->size()); |
+ return std::string(data->front_as<char>(), data->size()); |
} |
return std::string(); |