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>
#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)
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)
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);