fixup! [Tizen] Fix for Compiler and linker errors 14/300514/1
authorChandan Padhi <c.padhi@samsung.com>
Thu, 26 Oct 2023 09:21:04 +0000 (14:51 +0530)
committerChandan Padhi <c.padhi@samsung.com>
Thu, 26 Oct 2023 09:34:01 +0000 (15:04 +0530)
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 <c.padhi@samsung.com>
content/browser/BUILD.gn
content/browser/speech/tts_platform_impl.cc

index d14603f..0e8e7dc 100644 (file)
@@ -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",
index 346f4a0..daf7584 100644 (file)
@@ -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)