[Extensions] Add a WeakPtr guard in CrxInstaller
With the recently-added DestroyProfileOnBrowserClose flag, the Profile object is not guaranteed to exist throughout an extension's install process. There was one missing guard clause in CrxInstaller, which caused it to crash if the Profile was deleted too early. This patch adds the missing clause. Bug: 88586 Change-Id: I61cfa73ab5a1543263b3fdc72809694ac3dd0870 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462175 Commit-Queue: Nicolas Ouellet-Payeur <nicolaso@chromium.org> Reviewed-by:Karan Bhatia <karandeepb@chromium.org> Cr-Commit-Position: refs/heads/master@{#817093}
Showing
Please register or sign in to comment