#include <memory>
#include "base/macros.h"
+#include "tizen/common/env_variables.h"
#include "v8/include/v8.h"
namespace mate {
// Returns whether current process is browser process, currently we detect it
// by checking whether current has used V8 Lock, but it might be a bad idea.
- static inline bool IsBrowserProcess() { return v8::Locker::IsActive(); }
+ static inline bool IsBrowserProcess() { if (::tizen::is_single_process) return true; return v8::Locker::IsActive(); }
private:
void* operator new(size_t size);