commit | c7837eefbfde39ba47c7c97c3827988ac9219d39 | [log] [tgz] |
---|---|---|
author | Thomas Lukaszewicz <tluk@chromium.org> | Wed Apr 10 17:54:47 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 10 17:54:47 2024 |
tree | bb8f21e8d0155dbabe82264e7473cf67985c0c7c | |
parent | 20b86821343557433ec1364a6aa4ff627f9a628d [diff] |
Start UserActivityDetector event source observation in constructor This CL updates UserActivityDetector to initialize its observation over its thread local PlatformEventSource during construction after first access. Code is structured to ensure the PlatformEventSource has been created before the first use of the UserActivityDetector. This is guaranteed and the process with CHECK crash otherwise. This eliminates the need for client code to explicitly initialize the event source observation in implementation specific init. Bug: 5438673 Change-Id: I7c12adde2b063e9bd98525cb91284a07237d1d65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5438673 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/main@{#1285261}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.