This patch replaces all occurances of defined(OS_XXX) with
BUILDFLAG(IS_XXX) as per upstream changes mentioned in [1].
[1] https://bugs.chromium.org/p/chromium/issues/detail?id=1234043
Below efl/tizen build flags are replaced:
USE_EFL -> IS_EFL
OS_TIZEN -> IS_TIZEN
OS_TIZEN_TV_PRODUCT -> IS_TIZEN_TV
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/289238/
Change-Id: I387487f030919116dee9210261f23b215b6c4b60
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
pid_t ZygoteCommunication::GetZygotePid() {
return pid_;
}
-#endif
-#if BUILDFLAG(IS_TIZEN_TV)
void ZygoteCommunication::SetTimeZoneOffset(
const std::string& time_zone_offset) {
DCHECK(init_);
if (owner_window())
owner_window()->Focus(true);
#endif
-#if !defined(ENABLE_WRT_JS) || !defined(OS_TIZEN_TV_PRODUCT)
+#if !defined(ENABLE_WRT_JS) || !BUILDFLAG(IS_TIZEN_TV)
web_contents()->Focus();
#endif
}
}
void ElectronBrowserMainParts::PostEarlyInitialization() {
-#if defined(ENABLE_WRT_JS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(ENABLE_WRT_JS) && BUILDFLAG(IS_TIZEN_TV)
LOG(INFO) << "Start Electron PostEarlyInitialization";
#endif
// Initialize after user script environment creation.
fake_browser_process_->PostEarlyInitialization();
-#if defined(ENABLE_WRT_JS) && defined(OS_TIZEN_TV_PRODUCT)
+#if defined(ENABLE_WRT_JS) && BUILDFLAG(IS_TIZEN_TV)
LOG(INFO) << "End Electron PostEarlyInitialization";
#endif
}