#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_manager.h"
#include "net/base/filename_util.h"
+#include "tizen/common/env_variables.h"
namespace atom {
void AtomDownloadManagerDelegate::GetItemSavePath(content::DownloadItem* item,
base::FilePath* path) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
- v8::Locker locker(isolate);
+ if (!::tizen::is_single_process)
+ v8::Locker locker(isolate);
v8::HandleScope handle_scope(isolate);
api::DownloadItem* download = api::DownloadItem::FromWrappedClass(isolate,
item);
path.DirName());
v8::Isolate* isolate = v8::Isolate::GetCurrent();
- v8::Locker locker(isolate);
+ if (!::tizen::is_single_process)
+ v8::Locker locker(isolate);
v8::HandleScope handle_scope(isolate);
api::DownloadItem* download_item = api::DownloadItem::FromWrappedClass(
isolate, item);