Chromium Code Reviews

Unified Diff: chrome/browser/local_discovery/pwg_raster_converter.cc

Issue 126103003: Changed RefCountedStaticMemory() to accept a void pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/local_discovery/pwg_raster_converter.cc
diff --git a/chrome/browser/local_discovery/pwg_raster_converter.cc b/chrome/browser/local_discovery/pwg_raster_converter.cc
index e6109d0f33d1bfef30dc411f99e158d39a442c73..2ea9cab3e893751382857fe468559150dbc31e27 100644
--- a/chrome/browser/local_discovery/pwg_raster_converter.cc
+++ b/chrome/browser/local_discovery/pwg_raster_converter.cc
@@ -76,7 +76,7 @@ void FileHandlers::Init(base::RefCountedMemory* data) {
if (static_cast<int>(data->size()) !=
file_util::WriteFile(GetPdfPath(),
- reinterpret_cast<const char*>(data->front()),
+ data->front_as<char>(),
data->size())) {
return;
}
« no previous file with comments | « chrome/browser/local_discovery/privet_http_unittest.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »

Powered by Google App Engine