forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use WeakPtr for BlobStorageContext in BlobRegistryImpl.
Since BlobStorageContext and BlobRegistryImpl are owned by different classes it is possible for BlobRegistryImpl to outlive BlobStorageContext. So rather than keeping a raw pointer to the context, change that to a weak pointer, and guard every access to it with a null check. Bug: 779495 Change-Id: Ie35bc4135c4839cfd4c3e3836f83669349e7401a Reviewed-on: https://chromium-review.googlesource.com/748912 Commit-Queue: Daniel Murphy <dmurph@chromium.org> Reviewed-by: Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#513216}
- Loading branch information
1 parent
f659447
commit 073fff4
Showing
4 changed files
with
44 additions
and
12 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