Add observers for wake lock acquisition and release |
||
Issue descriptionAdd observers for wake lock acquisition and release. This is used for lock screen notifications based on dark resume.
,
Dec 21
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9a764cdd599968688a588f0fa4eaf5771b944b88 commit 9a764cdd599968688a588f0fa4eaf5771b944b88 Author: Abhishek Bhardwaj <abhishekbh@chromium.org> Date: Fri Dec 21 02:19:32 2018 WakeLock: Add observer API for wake lock implementation This change adds an observer API on the wake lock implementation class. It notifies observers on wake lock acquisition and release. This API will be used by the wake lock provider class to keep track of all wake locks created by different clients. BUG=chromium:913353 TEST=Dark resume controller unit tests. Change-Id: I1195050e47b81ed463fa6cd5455ea5b6f960becd Reviewed-on: https://chromium-review.googlesource.com/c/1372219 Commit-Queue: Abhishek Bhardwaj <abhishekbh@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#618432} [modify] https://crrev.com/9a764cdd599968688a588f0fa4eaf5771b944b88/services/device/public/cpp/test/test_wake_lock_provider.cc [modify] https://crrev.com/9a764cdd599968688a588f0fa4eaf5771b944b88/services/device/public/cpp/test/test_wake_lock_provider.h [modify] https://crrev.com/9a764cdd599968688a588f0fa4eaf5771b944b88/services/device/wake_lock/wake_lock.cc [modify] https://crrev.com/9a764cdd599968688a588f0fa4eaf5771b944b88/services/device/wake_lock/wake_lock.h
,
Jan 11
Setting defect without priority to default. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Dec 20