commit | b3291c9c757c766f3951b8dd4fbff35d00fdb1f9 | [log] [tgz] |
---|---|---|
author | James Cook <jamescook@chromium.org> | Thu Mar 14 19:51:54 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 14 19:51:54 2024 |
tree | 9f7cfdcc7f8d807e947221d20c29d0f24869a2fa | |
parent | d371a8d4b24179c44e868c8e1e3bfc009c44deec [diff] |
birch: Fix weather not loading sometimes on initial display Loading weather requires a network request to a backend service that requires auth tokens. Ensure that the user's refresh tokens are available before attempting to make a weather fetch. This requires access to IdentityManager, so plumb it from ash into chrome via BirchClient. Add a helper RefreshTokenWaiter class. A future CL will adapt BirchCalendarFetcher to use the waiter, since it has the same issue with refresh tokens. Bug: b:329324098 Test: added to ash_unittests and unit_tests Change-Id: Ia415a38c786dc9b51cd2ee0fcee8568b7d661ed8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5369760 Commit-Queue: James Cook <jamescook@chromium.org> Reviewed-by: Toni Barzic <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1273001}
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.