mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
Bug 1045847 - Fix review comments
This commit is contained in:
parent
c2b34b4534
commit
99080fa9fb
@ -85,8 +85,9 @@ content_process_main(int argc, char* argv[])
|
||||
{
|
||||
// Check for the absolute minimum number of args we need to move
|
||||
// forward here. We expect the last arg to be the child process type.
|
||||
if (argc < 1)
|
||||
if (argc < 1) {
|
||||
return 3;
|
||||
}
|
||||
XRE_SetProcessType(argv[--argc]);
|
||||
|
||||
bool isNuwa = false;
|
||||
|
@ -213,6 +213,12 @@ GeckoProcessType sChildProcessType = GeckoProcessType_Default;
|
||||
void
|
||||
XRE_SetProcessType(const char* aProcessTypeString)
|
||||
{
|
||||
static bool called = false;
|
||||
if (called) {
|
||||
MOZ_CRASH();
|
||||
}
|
||||
called = true;
|
||||
|
||||
sChildProcessType = GeckoProcessType_Invalid;
|
||||
for (int i = 0;
|
||||
i < (int) ArrayLength(kGeckoProcessTypeString);
|
||||
|
Loading…
x
Reference in New Issue
Block a user