commit | 14563213c7fda6c6cd5e40de14dd61c5a48ce699 | [log] [tgz] |
---|---|---|
author | Florian Leimgruber <fleimgruber@google.com> | Tue Jan 23 13:23:54 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 23 13:23:54 2024 |
tree | 5f803c56ca2f0a73d1c78cad6a3ea0444955bb15 | |
parent | 2f569d80f9600853d764f92785f07823a4801910 [diff] |
Make credit card cleanups independent from sync The PDMCleaner performs disused card deletion and clears non-settings origins. Both of these operations only operate on local cards, which are not synced. There's thus no reason why the code should wait for sync to be ready. In fact, due to crbug.com/1517515 waiting for sync is currently broken, so making the logic independent from sync fixes this issue for cards. To do so, this CL: - Renames CleanupData() -> MaybeCleanupAddressData() - Renames ApplyAddressAndCardFixesAndCleanups() -> MaybeCleanupAddressDataAfterSyncChange() - Renames ApplyDedupingRoutine() -> ApplyAddressDedupingRoutine() - Renames ApplyCardFixesAndCleanups() -> CleanupCreditCardData(), makes it public and calls it after the PDM initialization is complete. - Removes is_credit_card_cleanup_pending_. This check is no longer necessary, since the function is only called from a single place, which itself already checks that it's only triggered once. Bug: 1517515 Change-Id: Id2a07b6b14d3c427c8445f5861346d98c7130d96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5224728 Reviewed-by: Jihad Hanna <jihadghanna@google.com> Commit-Queue: Florian Leimgruber <fleimgruber@google.com> Cr-Commit-Position: refs/heads/main@{#1250776}
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.