]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't use duprecated node buffer api, fix build error on OS X.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 11 Jun 2015 07:52:48 +0000 (15:52 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 16 Jun 2015 12:07:44 +0000 (20:07 +0800)
chromium_src/chrome/browser/printing/print_preview_message_handler.cc

index 7005b1c24e9db5dbdbbbbd308fb924a3e3ebfeae..78f01c5de0162f7fb81a3b6bea37150616ce2af4 100644 (file)
@@ -128,6 +128,7 @@ void PrintPreviewMessageHandler::RunPrintToPDFCallback(
   v8::HandleScope handle_scope(isolate);
   if (data) {
     v8::Local<v8::Value> buffer = node::Buffer::Use(
+        isolate,
         const_cast<char*>(reinterpret_cast<const char*>(data->front())),
         data->size());
     print_to_pdf_callback_map_[request_id].Run(v8::Null(isolate), buffer);