Chromium Code Reviews
DescriptionInitialize WakeLockContextHost lazily
Most WebContents instances won't need it.
BUG=689403
TEST=On Chrome on Android, go to about://flags and turn on "Experimental Web
Platform features." Restart Chrome. Go to
https://colinblundell.github.io/wake_lock.html and verify that the page
says "Wake Lock API found". Verify that if you wait ~40 seconds, the device
goes to sleep. Tap "Block sleep." Verify that if you wait longer than the
above period, the device does not go to sleep. Tap "Unblock sleep" and
verify again that the device goes to sleep after waiting.
Review-Url: https://codereview.chromium.org/2777143002
Cr-Commit-Position: refs/heads/master@{#460035}
Committed: https://chromium.googlesource.com/chromium/src/+/d8cd72b77ad75432b531dd5d2c5d866544a2240c
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|
|||||||||||||||||||