DescriptionFlash: Use better APIs for preventing sleep
The API that this was using on Mac has been deprecated, and is
preventing us from upgrading our SDK version. We have a cross-platform
sleep-preventation API. Use that instead.
The Flash API for preventing power is a bit idiosyncratic in that it
doesn't create and destroy power blockers, but rather says "please don't
go to sleep for a while", where "a while" is not defined. Empirically,
twitch.tv called this method every 10 seconds. Use a timeout of 45
seconds to be safe.
BUG=650797
Committed: https://crrev.com/04c2bac53d96749f85f9046d9923810df58d41c1
Cr-Commit-Position: refs/heads/master@{#425843}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use DelayTimer #
Dependent Patchsets: Messages
Total messages: 28 (14 generated)
|