Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Issue 1036933003: Update last audio tick time during suspend and resume. (Closed)

Created:
5 years, 9 months ago by DaleCurtis
Modified:
5 years, 9 months ago
Reviewers:
nasko
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update last audio tick time during suspend and resume. 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 Committed: https://crrev.com/615510b0a769e83e36e1d1fb27465abb74bed6b4 Cr-Commit-Position: refs/heads/master@{#322509}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -5 lines) Patch
M media/audio/audio_manager.cc View 1 3 chunks +29 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
DaleCurtis
5 years, 9 months ago (2015-03-26 22:03:22 UTC) #2
nasko
https://codereview.chromium.org/1036933003/diff/1/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/1036933003/diff/1/media/audio/audio_manager.cc#newcode42 media/audio/audio_manager.cc:42: void OnResume() override { Are we guaranteed that there ...
5 years, 9 months ago (2015-03-26 23:10:44 UTC) #3
DaleCurtis
https://codereview.chromium.org/1036933003/diff/1/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/1036933003/diff/1/media/audio/audio_manager.cc#newcode42 media/audio/audio_manager.cc:42: void OnResume() override { On 2015/03/26 23:10:43, nasko wrote: ...
5 years, 9 months ago (2015-03-26 23:26:45 UTC) #4
nasko
LGTM
5 years, 9 months ago (2015-03-26 23:35:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1036933003/20001
5 years, 9 months ago (2015-03-26 23:40:40 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-27 00:30:52 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 00:31:42 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/615510b0a769e83e36e1d1fb27465abb74bed6b4
Cr-Commit-Position: refs/heads/master@{#322509}

Powered by Google App Engine
This is Rietveld 408576698