Bug 1659060 - part3 : update mac wakelock log. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D91043
This commit is contained in:
alwu 2020-09-23 18:31:22 +00:00
Родитель a3bb24c763
Коммит f79d9dced0
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -83,8 +83,8 @@ class MacWakeLockListener final : public nsIDOMMozWakeLockListener {
shouldKeepDisplayOn ? kIOPMAssertionTypeNoDisplaySleep : kIOPMAssertionTypeNoIdleSleep;
IOPMAssertionID& assertionId =
shouldKeepDisplayOn ? mAssertionNoDisplaySleepID : mAssertionNoIdleSleepID;
WAKE_LOCK_LOG("topic=%s, shouldKeepDisplayOn=%d", NS_ConvertUTF16toUTF8(aTopic).get(),
shouldKeepDisplayOn);
WAKE_LOCK_LOG("topic=%s, state=%s, shouldKeepDisplayOn=%d", NS_ConvertUTF16toUTF8(aTopic).get(),
NS_ConvertUTF16toUTF8(aState).get(), shouldKeepDisplayOn);
// Note the wake lock code ensures that we're not sent duplicate
// "locked-foreground" notifications when multiple wake locks are held.