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

Issue 2613143003: [MediaSession] Keep MediaSession controllable when losing audio focus (Closed)

Created:
3 years, 11 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MediaSession] Keep MediaSession controllable when losing audio focus This is for keeping the media notification more persistent when the audio focus is lost. The rationale is to reduce the effort to resume audio. Otherwise, the user go back to Chrome and find the tab and click play. BUG=678225 Review-Url: https://codereview.chromium.org/2613143003 Cr-Commit-Position: refs/heads/master@{#442587} Committed: https://chromium.googlesource.com/chromium/src/+/0c63aa9cb9891cc2d5376e5cec4c4b808ebdb3da

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comments and added tests #

Patch Set 3 : fixed for FindBugs #

Patch Set 4 : suppress FB warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -16 lines) Patch
M content/browser/media/session/audio_focus_delegate_android.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/media/session/audio_focus_delegate_android.cc View 1 1 chunk +2 lines, -10 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/AudioFocusDelegate.java View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/MediaSessionTest.java View 1 2 3 5 chunks +105 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
Zhiqiang Zhang (Slow)
PTAL
3 years, 11 months ago (2017-01-09 14:28:21 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/2613143003/diff/1/content/browser/media/session/audio_focus_delegate_android.cc File content/browser/media/session/audio_focus_delegate_android.cc (left): https://codereview.chromium.org/2613143003/diff/1/content/browser/media/session/audio_focus_delegate_android.cc#oldcode67 content/browser/media/session/audio_focus_delegate_android.cc:67: media_session_->Stop(MediaSession::SuspendType::SYSTEM); Do we still use `Stop()` somewhere? https://codereview.chromium.org/2613143003/diff/1/content/browser/media/session/audio_focus_delegate_android.cc File ...
3 years, 11 months ago (2017-01-09 14:33:37 UTC) #4
whywhat
lgtm modulo Mounir's comments do we have tests to update for this change?
3 years, 11 months ago (2017-01-09 16:03:16 UTC) #5
Zhiqiang Zhang (Slow)
On 2017/01/09 16:03:16, whywhat wrote: > do we have tests to update for this change? ...
3 years, 11 months ago (2017-01-09 18:11:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2613143003/80001
3 years, 11 months ago (2017-01-10 14:16:27 UTC) #19
mlamouri (slow - plz ping)
lgtm
3 years, 11 months ago (2017-01-10 14:21:33 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 14:58:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0c63aa9cb9891cc2d5376e5cec4c...

Powered by Google App Engine
This is Rietveld 408576698