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

Issue 1652163002: Refactor Clank cast code to use MediaNotificationManager (Closed)

Created:
4 years, 10 months ago by aberent
Modified:
4 years, 10 months ago
CC:
mlamouri (slow - plz ping), chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@MediaUi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor Clank cast code to use MediaNotificationManager This CL removes cast's own notification and lock screen classes, and replaces them with a wrapper of MediaNotificationManager. BUG=579919 Committed: https://crrev.com/f6db886968fd5493172f2941d6466a021e520a4e Cr-Commit-Position: refs/heads/master@{#373536}

Patch Set 1 #

Patch Set 2 : Remove redundant Android resources (fix lint.py errors). #

Total comments: 10

Patch Set 3 : Reply to comments and fix build/test comments #

Total comments: 6

Patch Set 4 : Update to match changes in https://codereview.chromium.org/1645943003 #

Patch Set 5 : Remove accidental change to CastSession.java #

Total comments: 1

Patch Set 6 : Respond to Mounir's comments #

Total comments: 6

Patch Set 7 : Respond to final batch of nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -1717 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/AndroidManifest.xml View 1 2 3 3 chunks +11 lines, -5 lines 0 comments Download
D chrome/android/java/res/layout/remote_notification_bar.xml View 1 1 chunk +0 lines, -101 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.java View 2 chunks +0 lines, -20 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java View 1 2 3 4 5 6 1 chunk +211 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/ExpandedControllerActivity.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/media/remote/LockScreenTransportControl.java View 1 chunk +0 lines, -167 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/media/remote/LockScreenTransportControlV16.java View 1 chunk +0 lines, -236 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/media/remote/LockScreenTransportControlV18.java View 1 chunk +0 lines, -80 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/MediaRouteController.java View 1 chunk +1 line, -1 line 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/media/remote/NotificationTransportControl.java View 1 chunk +0 lines, -519 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerController.java View 5 chunks +9 lines, -38 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/media/remote/TransportControl.java View 1 chunk +0 lines, -191 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastNotificationTest.java View 1 2 3 3 chunks +20 lines, -61 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastStartStopTest.java View 2 chunks +11 lines, -15 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastTestBase.java View 1 2 3 4 5 10 chunks +73 lines, -79 lines 0 comments Download
D chrome/android/junit/src/org/chromium/chrome/browser/media/remote/TransportControlTest.java View 1 chunk +0 lines, -198 lines 0 comments Download

Messages

Total messages: 41 (16 generated)
aberent
avayvod@ - Please review whole CL. bauberb@ - Please give owner signoff on chrome/android changes.
4 years, 10 months ago (2016-02-01 17:53:31 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/1652163002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652163002/1
4 years, 10 months ago (2016-02-01 17:56:21 UTC) #4
aberent
4 years, 10 months ago (2016-02-01 18:12:14 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/15574) android_clang_dbg_recipe on ...
4 years, 10 months ago (2016-02-01 18:13:15 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652163002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652163002/20001
4 years, 10 months ago (2016-02-01 18:42:13 UTC) #9
aberent
tedchoc@chromium.org: Please review changes to resources (chrome/android/java/res) as OWNER
4 years, 10 months ago (2016-02-01 18:42:33 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/15717)
4 years, 10 months ago (2016-02-01 19:29:39 UTC) #13
whywhat
overall lgtm with nits and questions (and I think some tests are still to be ...
4 years, 10 months ago (2016-02-01 20:54:15 UTC) #14
Ted C
On 2016/02/01 18:42:33, aberent wrote: > mailto:tedchoc@chromium.org: Please review changes to resources > (chrome/android/java/res) as ...
4 years, 10 months ago (2016-02-01 21:41:58 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652163002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652163002/40001
4 years, 10 months ago (2016-02-02 14:31:07 UTC) #17
aberent
https://codereview.chromium.org/1652163002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java File chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java (right): https://codereview.chromium.org/1652163002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java#newcode26 chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java:26: MediaNotificationListener, AudioManager.OnAudioFocusChangeListener { On 2016/02/01 20:54:14, whywhat wrote: > ...
4 years, 10 months ago (2016-02-02 14:31:11 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-02 15:14:23 UTC) #20
mlamouri (slow - plz ping)
some drive-by comments https://codereview.chromium.org/1652163002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java File chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java (right): https://codereview.chromium.org/1652163002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java:97: AudioManager.AUDIOFOCUS_GAIN); Why do we take audio ...
4 years, 10 months ago (2016-02-02 16:02:53 UTC) #22
aberent
avayvod@ PTAL https://codereview.chromium.org/1652163002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastNotificationTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastNotificationTest.java (left): https://codereview.chromium.org/1652163002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastNotificationTest.java#oldcode74 chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastNotificationTest.java:74: public void testNotificationSelect() throws InterruptedException, TimeoutException { ...
4 years, 10 months ago (2016-02-02 21:34:06 UTC) #23
aberent
On 2016/02/02 16:02:53, Mounir Lamouri wrote: > some drive-by comments > > https://codereview.chromium.org/1652163002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java > File ...
4 years, 10 months ago (2016-02-02 21:52:18 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652163002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652163002/80001
4 years, 10 months ago (2016-02-02 21:56:54 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-02 22:49:32 UTC) #28
aberent
https://codereview.chromium.org/1652163002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java File chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java (right): https://codereview.chromium.org/1652163002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java:97: AudioManager.AUDIOFOCUS_GAIN); On 2016/02/02 16:02:53, Mounir Lamouri wrote: > Why ...
4 years, 10 months ago (2016-02-03 11:58:48 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652163002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652163002/100001
4 years, 10 months ago (2016-02-03 12:00:00 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-03 12:50:23 UTC) #33
mlamouri (slow - plz ping)
lgtm with comments applied https://codereview.chromium.org/1652163002/diff/100001/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/1652163002/diff/100001/chrome/android/java/AndroidManifest.xml#newcode679 chrome/android/java/AndroidManifest.xml:679: </service> You are adding these ...
4 years, 10 months ago (2016-02-03 14:47:18 UTC) #34
aberent
https://codereview.chromium.org/1652163002/diff/100001/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/1652163002/diff/100001/chrome/android/java/AndroidManifest.xml#newcode679 chrome/android/java/AndroidManifest.xml:679: </service> On 2016/02/03 14:47:18, Mounir Lamouri (slow) wrote: > ...
4 years, 10 months ago (2016-02-04 14:36:47 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652163002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652163002/120001
4 years, 10 months ago (2016-02-04 14:37:35 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-04 15:23:16 UTC) #39
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 15:24:38 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f6db886968fd5493172f2941d6466a021e520a4e
Cr-Commit-Position: refs/heads/master@{#373536}

Powered by Google App Engine
This is Rietveld 408576698