From 894f9c0cb0b62244745707cc9775babb5f2593e8 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 11 Jun 2015 15:52:48 +0800 Subject: [PATCH] Don't use duprecated node buffer api, fix build error on OS X. --- .../chrome/browser/printing/print_preview_message_handler.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/chromium_src/chrome/browser/printing/print_preview_message_handler.cc b/chromium_src/chrome/browser/printing/print_preview_message_handler.cc index 7005b1c24e9d..78f01c5de016 100644 --- a/chromium_src/chrome/browser/printing/print_preview_message_handler.cc +++ b/chromium_src/chrome/browser/printing/print_preview_message_handler.cc @@ -128,6 +128,7 @@ void PrintPreviewMessageHandler::RunPrintToPDFCallback( v8::HandleScope handle_scope(isolate); if (data) { v8::Local buffer = node::Buffer::Use( + isolate, const_cast(reinterpret_cast(data->front())), data->size()); print_to_pdf_callback_map_[request_id].Run(v8::Null(isolate), buffer);