MCPcopy Create free account
hub / github.com/Bush2021/chrome_plus / IsBrowserProcess

Function IsBrowserProcess

src/pakpatch.cc:59–61  ·  view source on GitHub ↗

The loader calls `PakPatch()` only in the browser and in `--type=renderer` children (chrome++.cc `Loader`), so no `-type=` switch means the browser.

Source from the content-addressed store, hash-verified

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.
59bool IsBrowserProcess() {
60 return !wcsstr(GetCommandLineW(), L"-type=");
61}
62
63uint16_t GetPakTargetId() {
64 wchar_t value[8];

Callers 1

PatchResourcesPakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected