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

Issue 1243683003: Android MediaSession: do not resume a UI suspended session on a system resume. (Closed)

Created:
5 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 5 months ago
Reviewers:
whywhat, qinmin
CC:
avayvod+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-media_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android MediaSession: do not resume a UI suspended session on a system resume. When a session is suspended by the UI from the media notifications, it does not release the audio focus and might receive focus loss/gain messages from the system. It shouldn't try to resume the session when the focus is gained back in such case. BUG=511921 Committed: https://crrev.com/66c6978bdb49a99c387c11f94b35df1f8902d49c Cr-Commit-Position: refs/heads/master@{#339801}

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 4

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -36 lines) Patch
M content/browser/media/android/media_session.h View 1 2 3 chunks +14 lines, -6 lines 0 comments Download
M content/browser/media/android/media_session.cc View 1 2 8 chunks +34 lines, -25 lines 0 comments Download
M content/browser/media/android/media_session_browsertest.cc View 1 2 3 chunks +77 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
mlamouri (slow - plz ping)
I need to add tests and I will do that tomorrow but if you guys ...
5 years, 5 months ago (2015-07-20 19:30:56 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1243683003/20001
5 years, 5 months ago (2015-07-21 19:15:31 UTC) #4
mlamouri (slow - plz ping)
qinmin@ and avayvoyd@, could you review changes in: content/browser/media/android/ jochen@, can you review changes in: ...
5 years, 5 months ago (2015-07-21 19:15:38 UTC) #6
whywhat
lgtm with a couple of nits https://codereview.chromium.org/1243683003/diff/20001/content/browser/media/android/media_session_browsertest.cc File content/browser/media/android/media_session_browsertest.cc (right): https://codereview.chromium.org/1243683003/diff/20001/content/browser/media/android/media_session_browsertest.cc#newcode803 content/browser/media/android/media_session_browsertest.cc:803: EXPECT_FALSE(IsSuspended()); Add a ...
5 years, 5 months ago (2015-07-21 19:21:28 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-21 20:30:38 UTC) #9
qinmin
lgtm % comments https://codereview.chromium.org/1243683003/diff/20001/content/browser/media/android/media_session.h File content/browser/media/android/media_session.h (left): https://codereview.chromium.org/1243683003/diff/20001/content/browser/media/android/media_session.h#oldcode100 content/browser/media/android/media_session.h:100: Active, change all the enum names ...
5 years, 5 months ago (2015-07-21 22:58:17 UTC) #10
mlamouri (slow - plz ping)
All comments applied.
5 years, 5 months ago (2015-07-21 23:58:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1243683003/40001
5 years, 5 months ago (2015-07-21 23:59:54 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-22 00:49:37 UTC) #16
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 00:51:34 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/66c6978bdb49a99c387c11f94b35df1f8902d49c
Cr-Commit-Position: refs/heads/master@{#339801}

Powered by Google App Engine
This is Rietveld 408576698