
In the past, callers of the telemetry extension routine v2 APIs had to listen to one event for each type of routine. For example, there were `onMemoryRoutineFinished` and `onVolumeButtonRoutineFinished` events. It was a pain for extension developers to integrate so many event APIs. This change unifies all routine finished events into one `onRoutineFinished` event. Clients can thus listen to only one event, read the `uuid` to learn which particular routine the event corresponds to and get the detail of a finished routine. To achieve this, we translate Mojo unions into dictionaries containing nullable fields, each field corresponds to a member type of the union. Bug: b:320394027, b:331540565 Test: unit_tests -ozone-platform=headless --gtest_filter="*Diagnostics*" Test: browser_tests -ozone-platform=headless --gtest_filter="*Telemetry*" Change-Id: Ia518c469dd33b485fbec2d1d6725eb2e9ab86aac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5391170 Commit-Queue: Wei-Luan Wang <weiluanwang@google.com> Reviewed-by: Ethan Cheng <yycheng@google.com> Reviewed-by: Kelvin Jiang <kelvinjiang@chromium.org> Reviewed-by: Denny Huang <dennyh@google.com> Reviewed-by: Tim <tjudkins@chromium.org> Cr-Commit-Position: refs/heads/main@{#1280067}
Chromium
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.