commit | e5529d73e1dbadb2b1f932aa79f58aeef94b4b43 | [log] [tgz] |
---|---|---|
author | Dibyajyoti Pal <dibyapal@google.com> | Fri Feb 23 18:35:11 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 23 18:35:11 2024 |
tree | 24a410bce7ff758c0dfcfa6b03a7dd9ec159ba39 | |
parent | 0dfa4a643450de11a355c286315757141c84424e [diff] |
[dPWA] Make the WebAppInstallDialogCoordinator be a WidgetObserver Instead of using a raw_ptr to a bubble dialog delegate and then using a WeakPtr to itself everywhere inside the view, the install dialog coordinator for web apps is now a WidgetObserver. This ensures: 1. Simple lifetimes, since the view inside the coordinator is tracked only as long as the WidgetObserver is observing the main dialog, which is more robust than the previous implementation of a criss-cross raw_ptr, weak_ptr interface. 2. Practices separation of concerns, and brings the implementation closer to a MVC model, where the behavior, view and its observation happens independent of each other, with no overlapping logic. As a side note, this also fixes the measurement of the WebApp.InstallConfirmation.CloseReason by moving it to a central location to be used by both the old and new install dialogs. Bug: b/326418546 Change-Id: I7672d82d1683aa45ce9e51a37d3fef2e1d0c0a22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5320614 Reviewed-by: Daniel Murphy <dmurph@chromium.org> Commit-Queue: Dibyajyoti Pal <dibyapal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1264651}
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.