to improve the browser launch time.
During initialization, the browser process wastes time waiting
until its zygote process is initialized.
The main reason for this synchronization is to avoid losing messages
between browser and zygote process.
browser does not need to wait for the synchronization before
sending messages, because messages are buffered on the zygote side
Reference:
- https://review.tizen.org/gerrit/300627/
Change-Id: I9b4f490387eabe77e341cb2e52a7b18bee9b5de7
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
// This operation is done through the ZygoteHostImpl as a proxy because of
// race condition concerns.
+#if !BUILDFLAG(IS_TIZEN_TV)
ZygoteHostImpl::GetInstance()->SetRendererSandboxStatus(
generic_zygote->GetSandboxStatus());
+#endif
}
#endif // BUILDFLAG(USE_ZYGOTE)
#include "content/public/common/result_codes.h"
#include "sandbox/policy/switches.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
-
+#if BUILDFLAG(IS_TIZEN_TV)
+#include "content/browser/zygote_host/zygote_host_impl_linux.h"
+#endif
namespace content {
ZygoteCommunication::ZygoteCommunication(ZygoteType type)
if (bytes_read != sizeof(sandbox_status_)) {
return -1;
}
+#if BUILDFLAG(IS_TIZEN_TV)
+ ZygoteHostImpl::GetInstance()->SetRendererSandboxStatus(sandbox_status_);
+#endif
return bytes_read;
}