-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SHv2] Run PasswordStatusCheckService on browser startup
This CL makes PasswordStatusCheckService be created at browser startup. There were couple of different issues: 1) To handle ScopedObserver destruction, OnBulkCheckServiceShutDown is added to both PasswordCheckDelegate and PasswordStatusCheckService. As A result, whenever bulk leak service shut down, both stop observing it. 2) Replaced is_update_credential_count_pending_ with running_update_credential_count_ to control killing infra based on the number of running checks. 3) Marked ServiceIsNULLWhileTesting is true to adapt the behavior of AccountPasswordStore. AccountPasswordStoreFactory class also set ServiceIsNULLWhileTesting to true. 4) Updated SafetyHubHandlerTest by creating a testing factory for PasswordStatusCheckService. 5) Added RunUntilIdle to SingleClientNigoriWithWebApiTests to provide enough time to PasswordStatusCheckService to shutdown infra. Otherwise, there were a few dangling pointers in BulkLeakCheckServiceAdapter. 6) Handled profile_store being empty case in PasswordStatusCheckService to prevent crashes when password store is not enabled. Bug: 1443466 Change-Id: Ie2ef3397163118b96b7e86a97c2991f379bf3ee1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4926468 Reviewed-by: Martin Šrámek <msramek@chromium.org> Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216875}
- Loading branch information
Side Yilmaz
authored and
Chromium LUCI CQ
committed
Oct 30, 2023
1 parent
db423d7
commit e831131
Showing
10 changed files
with
137 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters