The loader calls `PakPatch()` only in the browser and in `--type=renderer` children (chrome++.cc `Loader`), so no `-type=` switch means the browser.
| 57 | // The loader calls `PakPatch()` only in the browser and in `--type=renderer` |
| 58 | // children (chrome++.cc `Loader`), so no `-type=` switch means the browser. |
| 59 | bool IsBrowserProcess() { |
| 60 | return !wcsstr(GetCommandLineW(), L"-type="); |
| 61 | } |
| 62 | |
| 63 | uint16_t GetPakTargetId() { |
| 64 | wchar_t value[8]; |