diff --git a/dom/ipc/ProcessPriorityManager.cpp b/dom/ipc/ProcessPriorityManager.cpp index 424cbc603dd1..a781ad14577b 100644 --- a/dom/ipc/ProcessPriorityManager.cpp +++ b/dom/ipc/ProcessPriorityManager.cpp @@ -541,7 +541,7 @@ ProcessPriorityManager::SetIsForeground() mProcessPriority = foregroundPriority; LOG("Setting priority to %s.", ProcessPriorityToString(mProcessPriority)); - hal::SetProcessPriority(getpid(), PROCESS_PRIORITY_FOREGROUND); + hal::SetProcessPriority(getpid(), mProcessPriority); } void diff --git a/hal/HalTypes.h b/hal/HalTypes.h index c080260e89c6..970f35d89074 100644 --- a/hal/HalTypes.h +++ b/hal/HalTypes.h @@ -13,7 +13,9 @@ namespace mozilla { namespace hal { /** - * XXX + * These constants specify special values for content process IDs. You can get + * a content process ID by calling ContentChild::GetID() or + * ContentParent::GetChildID(). */ const uint64_t CONTENT_PROCESS_ID_UNKNOWN = uint64_t(-1); const uint64_t CONTENT_PROCESS_ID_MAIN = 0;