[M108 Migration] Support ecore mainloop on utility process 20/288020/3
authorv-saha <v.saha@samsung.com>
Thu, 9 Feb 2023 06:16:20 +0000 (11:46 +0530)
committerBot Blink <blinkbot@samsung.com>
Fri, 10 Feb 2023 12:16:16 +0000 (12:16 +0000)
Ecore events are not triggered on utility process as MessagePumpDefault
is used as the message pump. This commit sets MessagePumpEcore as the
message pump for utility process to support ecore events.

Reference: https://review.tizen.org/gerrit/279393

Change-Id: If2b62fdef2bc9a44e446e37ba67d71c6f93b1845
Signed-off-by: v-saha <v.saha@samsung.com>
content/utility/utility_main.cc

index c15f7b9..3097f60 100644 (file)
@@ -84,7 +84,11 @@ int UtilityMain(MainFunctionParams parameters) {
   base::MessagePumpType message_pump_type =
       parameters.command_line->HasSwitch(switches::kMessageLoopTypeUi)
           ? base::MessagePumpType::UI
+#if BUILDFLAG(IS_EFL)
+          : base::MessagePumpType::ECORE;
+#else
           : base::MessagePumpType::DEFAULT;
+#endif
 
 #if BUILDFLAG(IS_MAC)
   auto sandbox_type =