Starting memory-infra not only in WRT but also in other applications
(e.g. HbbTv).
Change-Id: I5003752ba352b42f652e28cc14e3309ea4b896fd
p_command_line->AppendSwitch(switches::kDisableRendererZygote);
#endif
+#if BUILDFLAG(USE_ALLOCATOR_SHIM)
+ LOG(INFO) << "Appending memory-infra switches";
+ p_command_line->AppendSwitchNative("memlog", "all");
+ p_command_line->AppendSwitchNative("memlog-stack-mode", "native");
+#endif
+
// XXX: Skia benchmarking should be only used for testing,
// when enabled the following warning is printed to stderr:
// "Enabling unsafe Skia benchmarking extension."
CommandLineEfl::Init(argc, argv);
-#if BUILDFLAG(USE_ALLOCATOR_SHIM)
- LOG(INFO) << "Appending memory-infra switches";
- auto* command_line = base::CommandLine::ForCurrentProcess();
- command_line->AppendSwitchNative("memlog", "all");
- command_line->AppendSwitchNative("memlog-stack-mode", "native");
-#endif
-
electron::ElectronCommandLine::InitializeFromCommandLine();
if (IsBrowserProcess()) {