Wake Lock is a Mojo interface that wraps PowerSaveBlocker. As part of the creation of standalone Device Service, all browser-side clients of PowerSaveBlocker should be converted to be clients of the Wake Lock Mojo interface instead. The usage pattern is essentially identical, so the conversions should be relatively straightforward.
WakeLock always set type as "device::PowerSaveBlocker::kPowerSaveBlockPreventDisplaySleep" when creating PowerSaveBlocker, while in component/drive/drive_uploader.cc for example, it set type as "device::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension".
So I guess we need to make some change in the interface of Wakelock.mojom to let its user pass the type?
Comment 1 by blundell@chromium.org
, Feb 7 2017