Bug 1054208 - Assert priority only on non-Nuwa process. r=gsvelto

This commit is contained in:
Ting-Yu Chou 2014-08-29 11:53:49 +08:00
parent 42e86e8374
commit 7be3614147

View File

@ -1040,11 +1040,6 @@ ParticularProcessPriorityManager::SetPriorityNow(ProcessPriority aPriority,
ProcessCPUPriority aCPUPriority,
uint32_t aBackgroundLRU)
{
if (aPriority == PROCESS_PRIORITY_UNKNOWN) {
MOZ_ASSERT(false);
return;
}
#ifdef MOZ_NUWA_PROCESS
// Do not attempt to change the priority of the Nuwa process
if (mContentParent->IsNuwaProcess()) {
@ -1052,6 +1047,11 @@ ParticularProcessPriorityManager::SetPriorityNow(ProcessPriority aPriority,
}
#endif
if (aPriority == PROCESS_PRIORITY_UNKNOWN) {
MOZ_ASSERT(false);
return;
}
if (aBackgroundLRU > 0 &&
aPriority == PROCESS_PRIORITY_BACKGROUND &&
mPriority == PROCESS_PRIORITY_BACKGROUND) {