DescriptionFix a crash and possible memory leak in AutoplayUmaHelper
There's a crash in
AutoplayUmaHelper::onVisibilityChangedForVideoMutedPlayMethod().
It might be possible that the callback is called after the observer
is released. This CL adds additional nullcheck to avoid the crash.
This CL also fixes a possible memory leak by changing
wrapPersistent to wrapWeakPersistent.
BUG=638595
Committed: https://crrev.com/403b4008f974e12adcc9ba95036120cc299784fb
Cr-Commit-Position: refs/heads/master@{#412574}
Patch Set 1 #Patch Set 2 : wrapPersistent => wrapWeakPersistent #Messages
Total messages: 14 (7 generated)
|