Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
This commit is contained in:
@@ -37,7 +37,7 @@ DiskSpaceWatcher::~DiskSpaceWatcher()
|
||||
already_AddRefed<DiskSpaceWatcher>
|
||||
DiskSpaceWatcher::FactoryCreate()
|
||||
{
|
||||
if (XRE_GetProcessType() != GeckoProcessType_Default) {
|
||||
if (!XRE_IsParentProcess()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user