From: Chandan Padhi Date: Thu, 26 Oct 2023 09:21:04 +0000 (+0530) Subject: fixup! [Tizen] Fix for Compiler and linker errors X-Git-Tag: submit/tizen/20240301.160335~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F300514%2F1;p=platform%2Fframework%2Fweb%2Fchromium-efl.git fixup! [Tizen] Fix for Compiler and linker errors This commit ensures that a valid TtsPlatform is returned to fix segmentation fault crash related to it on following websites. www.baidu.com www.hao123.com www.flipkart.com Change-Id: I86e9f50fb7f54be8980dabc114ac45af7b7d4a8c Signed-off-by: Chandan Padhi --- diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn index d14603f..0e8e7dc 100644 --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn @@ -2434,7 +2434,7 @@ source_set("browser") { ] } - if (is_linux) { + if (is_linux || is_tizen) { sources += [ "speech/tts_linux.cc" ] deps += [ "//third_party/speech-dispatcher", diff --git a/content/browser/speech/tts_platform_impl.cc b/content/browser/speech/tts_platform_impl.cc index 346f4a0..daf7584 100644 --- a/content/browser/speech/tts_platform_impl.cc +++ b/content/browser/speech/tts_platform_impl.cc @@ -17,10 +17,6 @@ namespace content { // static TtsPlatform* TtsPlatform::GetInstance() { -#if defined(EWK_BRINGUP) - LOG(ERROR) << " Need to enable tts for Tizen"; - return nullptr; -#endif #if !defined(NO_CONTENT_CLIENT) TtsPlatform* result = GetContentClient()->browser()->GetTtsPlatform(); if (result)