-
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.
[M90-LTS] Do more class validity checks in PrintViewManagerBase.
PrintViewManagerBase runs a nested loop. In some situations, PrintViewManagerBase and related classes like PrintViewManager and PrintPreviewHandler can get deleted while the nested loop is running. When this happens, the nested loop exists to a PrintViewManagerBase that is no longer valid. Use base::WeakPtrs liberally to check for this condition and exit safely. (cherry picked from commit a2cb1fb) Bug: 1231134 Change-Id: I21ec131574331ce973d22594c11e70088147e149 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3057880 Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#906269} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3100154 Reviewed-by: Artem Sumaneev <asumaneev@google.com> Owners-Override: Artem Sumaneev <asumaneev@google.com> Commit-Queue: Roger Felipe Zanoni da Silva <rzanoni@google.com> Cr-Commit-Position: refs/branch-heads/4430@{#1574} Cr-Branched-From: e5ce7dc-refs/heads/master@{#857950}
- Loading branch information
Showing
5 changed files
with
30 additions
and
0 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