#include "wgt_manifest_handlers/launch_screen_handler.h"
#endif // defined(OS_TIZEN)
+#include "tizen/common/env_variables.h"
+
namespace atom {
Browser::Browser()
observer.OnQuit();
if (base::ThreadTaskRunnerHandle::IsSet()) {
- base::ThreadTaskRunnerHandle::Get()->PostTask(
+ if (::tizen::is_single_process) {
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
+ FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(), base::TimeDelta::FromSeconds(1));
+ } else {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
+ }
ui_app_exit();
} else {
// There is no message loop available so we are in early stage.