Backed out changeset 9b04f5fd79d6 (bug 836654)

This commit is contained in:
Ed Morley 2013-02-14 10:02:21 +00:00
Родитель 790a34b2d5
Коммит 97261db3a9
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -13,9 +13,7 @@ namespace mozilla {
namespace hal { namespace hal {
/** /**
* These constants specify special values for content process IDs. You can get * XXX
* 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_UNKNOWN = uint64_t(-1);
const uint64_t CONTENT_PROCESS_ID_MAIN = 0; const uint64_t CONTENT_PROCESS_ID_MAIN = 0;

Просмотреть файл

@ -281,7 +281,7 @@ ModifyWakeLock(const nsAString &aTopic,
WakeLockControl aHiddenAdjust, WakeLockControl aHiddenAdjust,
uint64_t aProcessID) uint64_t aProcessID)
{ {
MOZ_ASSERT(aProcessID != CONTENT_PROCESS_ID_UNKNOWN); MOZ_ASSERT(aProcessID != ContentChild::kUnknownID);
Hal()->SendModifyWakeLock(nsString(aTopic), aLockAdjust, aHiddenAdjust, aProcessID); Hal()->SendModifyWakeLock(nsString(aTopic), aLockAdjust, aHiddenAdjust, aProcessID);
} }
@ -713,7 +713,7 @@ public:
const WakeLockControl& aHiddenAdjust, const WakeLockControl& aHiddenAdjust,
const uint64_t& aProcessID) MOZ_OVERRIDE const uint64_t& aProcessID) MOZ_OVERRIDE
{ {
MOZ_ASSERT(aProcessID != CONTENT_PROCESS_ID_UNKNOWN); MOZ_ASSERT(aProcessID != ContentChild::kUnknownID);
// We allow arbitrary content to use wake locks. // We allow arbitrary content to use wake locks.
hal::ModifyWakeLock(aTopic, aLockAdjust, aHiddenAdjust, aProcessID); hal::ModifyWakeLock(aTopic, aLockAdjust, aHiddenAdjust, aProcessID);