
To continue the migration away from TaskRunnerHandles, the codebase was refactored using the following scripts: shell script: https://paste.googleplex.com/4673967729147904 python: https://paste.googleplex.com/5824001174667264 This will do a few sed-like modifications, changing calls to methods of ThreadTaskRunnerHandle to calls to methods of SingleThreadTaskRunner::CurrentDefaultHandle, and swapping includes. Bug: 1026641 AX-Relnotes: n/a. Change-Id: Ia33b6dfebb15937481c619f5c838720ce7bb2676 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4031817 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Owners-Override: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/main@{#1074085}
Web OTP API
Android has automatic and one-tap SMS verification. We would like to cover the gap on web platform and implement the WebOTP Service API for web developers.
Web-exposed Interfaces
Web OTP API
This is implemented in third_party/blink/renderer/modules/credentialmanagement and exposes the following function:
navigator.credentials.get({otp: {transport: ["sms"]}})
Testing
- Unit tests are located in content/browser/sms/webotp_service_unittest.cc.
- Browser tests are located in content/browser/sms/sms_browsertest.cc.
- The Android related tests are located in chrome/android/javatests/src/org/chromium/chrome/browser/sms/.
- Web platform tests are located in third_party/blink/web_tests/http/tests/credentialmanagement/
For how to run these tests, refer to Chromium documentation Running tests locally, Android Test Instructions
For testing this API locally, refer to How to use the Web OTP API
Platform Support
Android
The Android implementation (this does not include Android WebView) is located in chrome/browser/ui/android/sms/, content/public/android/java/src/org/chromium/content/browser/sms/, and chrome/android/java/src/org/chromium/chrome/browser/sms/.
For architectural diagrams, refer to design doc.
Desktop
We plan to implement it in the near future.