Run Tizen Webapps in single process mode
[platform/framework/web/crosswalk-tizen.git] / chromium_src / chrome / browser / printing / print_preview_message_handler.cc
index 7e44f64..6da9d44 100644 (file)
@@ -17,6 +17,7 @@
 #include "printing/page_size_margins.h"
 #include "printing/print_job_constants.h"
 #include "printing/pdf_metafile_skia.h"
+#include "tizen/common/env_variables.h"
 
 #include "atom/common/node_includes.h"
 
@@ -127,7 +128,8 @@ void PrintPreviewMessageHandler::RunPrintToPDFCallback(
   DCHECK_CURRENTLY_ON(BrowserThread::UI);
 
   v8::Isolate* isolate = v8::Isolate::GetCurrent();
-  v8::Locker locker(isolate);
+  if (!::tizen::is_single_process)
+    v8::Locker locker(isolate);
   v8::HandleScope handle_scope(isolate);
   if (data) {
     v8::Local<v8::Value> buffer = node::Buffer::New(isolate,