Index: chrome/browser/android/dev_tools_server.cc |
diff --git a/chrome/browser/android/dev_tools_server.cc b/chrome/browser/android/dev_tools_server.cc |
index 3318a70b1715867d5c70117dee6e9ee7e765d206..038d8229827c8549b4e2ac4e52d4e9e93001134b 100644 |
--- a/chrome/browser/android/dev_tools_server.cc |
+++ b/chrome/browser/android/dev_tools_server.cc |
@@ -285,8 +285,7 @@ class DevToolsServerDelegate : public content::DevToolsHttpHandlerDelegate { |
if (top_sites) { |
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 ""; |
} |