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

Issue 1458703003: Media Session API: use MediaMetadata in the browser process. (Closed)

Created:
5 years, 1 month ago by mlamouri (slow - plz ping)
Modified:
4 years, 9 months ago
CC:
avayvod+watch_chromium.org, whywhat, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, davve, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, media-router+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, nasko+codewatch_chromium.org, philipj_slow, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@media_session_browser_side
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Session API: use MediaMetadata in the browser process. This is adding a Java counterpart to the content::MediaMetadata added in Java with a proxy to pass the object from C++ to Java. The MediaMetadata information are only used to replace the title from the media notification and set some Android metadata. Other UI changes will require UI review. BUG=497735, 581728 Committed: https://crrev.com/2d1bfbd36ef0362b28661a09d25f63a7d06fa9f6 Cr-Commit-Position: refs/heads/master@{#381697}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : remove dependencies from other CLs #

Total comments: 30

Patch Set 6 : rebase #

Patch Set 7 : review comments #

Patch Set 8 : fix tests compilation #

Total comments: 4

Patch Set 9 : review comments applied #

Patch Set 10 : atom doesn't move properly :( #

Total comments: 4

Patch Set 11 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -81 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastSessionImpl.java View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationInfo.java View 1 2 3 4 5 6 10 chunks +13 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java View 1 2 3 4 5 6 4 chunks +13 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java View 1 2 3 4 5 6 6 chunks +22 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationTitleUpdatedTest.java View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/android/web_contents_observer_proxy.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/web_contents_observer_proxy.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/media/session/media_session.h View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/media/session/media_session_browsertest.cc View 1 2 3 4 5 6 7 19 chunks +43 lines, -47 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/common/android/common_jni_registrar.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A content/common/android/media_metadata_android.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A content/common/android/media_metadata_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContentsObserver.java View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
A content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +111 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 36 (16 generated)
mlamouri (slow - plz ping)
Could you PTAL at: jochen@ - content/browser/web_contents/ - content/public/browser/ tedchoc@ - everything else Thanks! :)
4 years, 10 months ago (2016-02-26 18:26:35 UTC) #5
mlamouri (slow - plz ping)
+avayvod@, +philipj@, +davve@ FYI
4 years, 10 months ago (2016-02-26 18:29:08 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/1458703003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703003/80001
4 years, 10 months ago (2016-02-26 18:29:18 UTC) #9
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/27976)
4 years, 10 months ago (2016-02-26 19:01:59 UTC) #11
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-01 14:24:11 UTC) #12
Ted C
https://codereview.chromium.org/1458703003/diff/80001/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/1458703003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java#newcode121 chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java:121: mNotificationBuilder.setMetadata(new MediaMetadata(mTitle, "", "")); why the empty string and ...
4 years, 9 months ago (2016-03-01 17:18:12 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458703003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703003/120001
4 years, 9 months ago (2016-03-16 15:47:02 UTC) #15
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/1458703003/diff/80001/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/1458703003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java#newcode121 chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java:121: mNotificationBuilder.setMetadata(new MediaMetadata(mTitle, "", "")); On 2016/03/01 ...
4 years, 9 months ago (2016-03-16 15:47:16 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/39086) mac_chromium_compile_dbg_ng on ...
4 years, 9 months ago (2016-03-16 16:01:54 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458703003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703003/140001
4 years, 9 months ago (2016-03-16 16:32:14 UTC) #20
Ted C
https://codereview.chromium.org/1458703003/diff/80001/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/1458703003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java#newcode121 chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java:121: mNotificationBuilder.setMetadata(new MediaMetadata(mTitle, "", "")); On 2016/03/16 15:47:15, Mounir Lamouri ...
4 years, 9 months ago (2016-03-16 16:55:58 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 17:40:33 UTC) #23
mlamouri (slow - plz ping)
All comments applied. PTAL. https://codereview.chromium.org/1458703003/diff/80001/content/common/android/media_metadata_proxy.h File content/common/android/media_metadata_proxy.h (right): https://codereview.chromium.org/1458703003/diff/80001/content/common/android/media_metadata_proxy.h#newcode16 content/common/android/media_metadata_proxy.h:16: class MediaMetadataProxy { On 2016/03/16 ...
4 years, 9 months ago (2016-03-16 20:31:55 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/1458703003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703003/180001
4 years, 9 months ago (2016-03-16 20:34:45 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 21:51:32 UTC) #28
Ted C
lgtm w/ a couple last nits https://codereview.chromium.org/1458703003/diff/180001/content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java File content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java (right): https://codereview.chromium.org/1458703003/diff/180001/content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java#newcode74 content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java:74: /* add another ...
4 years, 9 months ago (2016-03-16 23:13:14 UTC) #29
mlamouri (slow - plz ping)
https://codereview.chromium.org/1458703003/diff/180001/content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java File content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java (right): https://codereview.chromium.org/1458703003/diff/180001/content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java#newcode74 content/public/android/java/src/org/chromium/content_public/common/MediaMetadata.java:74: /* On 2016/03/16 at 23:13:14, Ted C wrote: > ...
4 years, 9 months ago (2016-03-17 11:47:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458703003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458703003/200001
4 years, 9 months ago (2016-03-17 11:48:30 UTC) #33
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 9 months ago (2016-03-17 13:15:03 UTC) #34
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 13:16:10 UTC) #36
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/2d1bfbd36ef0362b28661a09d25f63a7d06fa9f6
Cr-Commit-Position: refs/heads/master@{#381697}

Powered by Google App Engine
This is Rietveld 408576698