[M130 Migration] Appends default switches in chrome 37/320637/4
authorAvinash Bhojwani <avinash.b@samsung.com>
Wed, 5 Mar 2025 06:48:33 +0000 (12:18 +0530)
committerInsoon Kim <is46.kim@samsung.com>
Thu, 6 Mar 2025 09:14:22 +0000 (09:14 +0000)
Append default switches for VD Browser to chrome also
to align features with each other except offscreen rendering.
Reference: https://archive.tizen.org/gerrit/319195

Change-Id: I71679cf3003b3b9034e87205c71a05aa2fe28596
Signed-off-by: Avinash Bhojwani <avinash.b@samsung.com>
chrome/app/chrome_main_delegate.cc
tizen_src/ewk/efl_integration/command_line_efl.cc

index b33bc0677efddef958c05cc2809380c2d9b1c535..7a857f67b9b4beaaa2beec9cf7699d55073c02f5 100644 (file)
 
 #if BUILDFLAG(IS_WIN) || defined(BUILD_CHROME)
 #include "base/base_switches.h"
+#include "tizen_src/ewk/efl_integration/command_line_efl.h"
 #endif
 
 #if BUILDFLAG(IS_WIN)
@@ -1245,6 +1246,7 @@ void ChromeMainDelegate::SetupTracing() {
 std::optional<int> ChromeMainDelegate::BasicStartupComplete() {
 #if defined(BUILD_CHROME)
   base::CommandLine::ForCurrentProcess()->AppendSwitch(switches::kEnableChrome);
+  std::ignore = CommandLineEfl::GetDefaultPortParams();
 #endif
 
 #if BUILDFLAG(IS_CHROMEOS_ASH)
index 96161d34f1a366ee30a2fed38fffed50e5ba26a4..c402086e8537390c6d34ec724900895ab441534c 100644 (file)
@@ -71,7 +71,8 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
   p_command_line->AppendSwitch(switches::kIgnoreGpuBlocklist);
   p_command_line->AppendSwitch(switches::kInProcessGPU);
   p_command_line->AppendSwitchASCII(switches::kOzonePlatform, "efl");
-  p_command_line->AppendSwitch(switches::kEnableOffscreenRendering);
+  if (!p_command_line->HasSwitch(switches::kEnableChrome))
+    p_command_line->AppendSwitch(switches::kEnableOffscreenRendering);
   p_command_line->AppendSwitch(switches::kNoUnsandboxedZygote);
 
   AppendMemoryOptimizationSwitches(p_command_line);