I want to add new commandline switches or modify few command line switches in main process.
I tried using "OnBeforeCommandLineProcessing" and process_type is supposed to be empty for main process. But I am not able to find a log with "process_type" empty.. I get few logs for other sub-processes.
To update main process command line flags we need to use "OnBeforeCommandLineProcessing" this function right? or is there any other way ?
If we try updating sub-process command line switches in "OnBeforeCommandLineProcessing", then it crashes.
I want to add new commandline switches or modify few command line switches in few sub processes.
I tried adding log in "OnBeforeChildProcessLaunch" but it does not get invoked. I am returning "CefBrowserProcessHandler" from "GetBrowserProcessHandler" function. Is there anything I am missing ?
Also I had few more doubts related to "OnBeforeChildProcessLaunch" -
1) how to identify process_type in OnBeforeChildProcessLaunch ?
2) This function will be called for gpu-process and renderer only? not for any other sub-process ?
Please let me know if there is any better way to achieve same thing.