Run Tizen Webapps in single process mode
[platform/framework/web/crosswalk-tizen.git] / atom / common / api / locker.cc
index fe0b234..09a72fa 100644 (file)
@@ -3,12 +3,17 @@
 // found in the LICENSE.chromium file.
 
 #include "atom/common/api/locker.h"
+#include "base/logging.h"
+#include "tizen/common/env_variables.h"
 
 namespace mate {
 
 Locker::Locker(v8::Isolate* isolate) {
-  if (IsBrowserProcess())
+  if (::tizen::is_single_process)
+    return;
+  if (IsBrowserProcess()) {
     locker_.reset(new v8::Locker(isolate));
+  }
 }
 
 Locker::~Locker() {