• dalecurtis's avatar
    Update last audio tick time during suspend and resume. · 615510b0
    dalecurtis authored
    If someone suspends their computer and resumes more than a minute
    later, the browser io thread may tick before the audio thread can
    update the last tick time ==> crash :(
    
    The solution is to disable hang detection during suspend and only
    reenable it once resume completes; at which point we can update
    the tick count. If we're actually hung, we'll crash after the next
    interval elapses.
    
    BUG=471046
    TEST=none
    
    Review URL: https://codereview.chromium.org/1036933003
    
    Cr-Commit-Position: refs/heads/master@{#322509}
    615510b0
audio_manager.cc 4.32 KB