DescriptionSpeculative fix to a crash caused by hitting the dangerous download infobar.
There is no good explanation of the crash:
1. When clicking on a dangerous download, we set mPendingRequest and start
the infobar.
2. When user dismiss the infobar, we reset mPendingRequest.
3. If mPendingRequest is non null, a 2nd request will not trigger any
infobar.
So at anytime, there are at most 1 dangerous infobar.
And if mPendingRequest is non null, there should be an infobar showing,
vice versa.
So this a speculative fix to the crash from the crash stack we have
seen.
BUG=579707
Committed: https://crrev.com/7efc4d5ec2db8b17a7aa28723283524f6591cd6a
Cr-Commit-Position: refs/heads/master@{#372153}
Patch Set 1 : #Patch Set 2 : rebase #Messages
Total messages: 17 (10 generated)
|