Make WakeLock a Supplement<NavigatorBase>
NavigatorBase is a newly-added base class for Navigator and WorkerNavigator. Making WakeLock a Supplement of NavigatorBase allows a single class to handle all of the work of exposing the navigator.wakeLock getter for both windows and workers, and greatly reduces boilerplate. Bug: 1147612 Change-Id: I7a56f1e71d6c8ec3e45bf163d726f8035b8cc70b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2537919 Commit-Queue: Nate Chapin <japhet@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Auto-Submit: Nate Chapin <japhet@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#827536}
Showing
Please register or sign in to comment