commit | 5c36d5497194b0e689ff776069948f9c34c7e581 | [log] [tgz] |
---|---|---|
author | Mathias Carlen <mcarlen@chromium.org> | Mon May 20 12:00:39 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 20 12:00:39 2019 |
tree | 891326f763501fec8342ecab7b127a4631bc8eb0 | |
parent | 86c236cc03f2392399dabdf3f101309ab20d42f8 [diff] |
[Autofill Assistant] Remove the profile cache data observers. Before this patch, we kept adding new observers to the list of cache data observers when closing the app (without the app being destroyed). Resuming the activity by triggering another run would reuse the existing profile cache and the default profile image was shown. This patch introduces a destroy() function to the header coordinator so that it can clean up internals when we go out of scope. In particular it removes the profile data observer registered in the constructor. Bug: b/132379462 Change-Id: I96c473b6748bd8b7105cab58bfdb497411e6f93c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1609779 Commit-Queue: Mathias Carlen <mcarlen@chromium.org> Reviewed-by: Clemens Arbesser <arbesser@google.com> Cr-Commit-Position: refs/heads/master@{#661323}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .