Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
This commit is contained in:
@@ -32,7 +32,7 @@ static NS_DEFINE_CID(kZipReaderCacheCID, NS_ZIPREADERCACHE_CID);
|
||||
nsJARProtocolHandler *gJarHandler = nullptr;
|
||||
|
||||
nsJARProtocolHandler::nsJARProtocolHandler()
|
||||
: mIsMainProcess(XRE_GetProcessType() == GeckoProcessType_Default)
|
||||
: mIsMainProcess(XRE_IsParentProcess())
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user