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

Issue 2788783002: [Cast,Android] Handle some PresentationAPI edge cases (Closed)

Created:
3 years, 8 months ago by whywhat
Modified:
3 years, 8 months ago
CC:
agrieve+watch_chromium.org, chfremer+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, media-router+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cast,Android] Handle some PresentationAPI edge cases Update MediaRouteObservers when the route is detached vs terminated. Update MediaRouter about the route closed if there's no client record or successful session. All edge cases happen when the page is not using the Cast Web SDK. BUG=706998 TEST=manually on https://googlechrome.github.io/samples/presentation-api/cast.html Review-Url: https://codereview.chromium.org/2788783002 Cr-Commit-Position: refs/heads/master@{#463680} Committed: https://chromium.googlesource.com/chromium/src/+/b265af93a6c5594f08c92a93a1c06cb0611c775d

Patch Set 1 #

Patch Set 2 : Added tests to MediaRouterAndroid #

Patch Set 3 : Added CastMediaRouteProviderTest cases #

Total comments: 4

Patch Set 4 : Fixed the unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -234 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java View 1 6 chunks +30 lines, -32 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CreateRouteRequest.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProviderTest.java View 1 2 2 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/android/router/media_router_android.h View 1 5 chunks +27 lines, -43 lines 0 comments Download
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 11 chunks +54 lines, -156 lines 0 comments Download
A chrome/browser/media/android/router/media_router_android_bridge.h View 1 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/media/android/router/media_router_android_bridge.cc View 1 1 chunk +197 lines, -0 lines 0 comments Download
A chrome/browser/media/android/router/media_router_android_unittest.cc View 1 2 3 1 chunk +129 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
whywhat
PTaL
3 years, 8 months ago (2017-03-30 22:12:18 UTC) #2
mlamouri (slow - plz ping)
We really need tests for these: they are edge cases so they are likely to ...
3 years, 8 months ago (2017-03-31 11:23:59 UTC) #7
whywhat
Added tests to MediaRouterAndroid
3 years, 8 months ago (2017-04-10 22:26:34 UTC) #8
whywhat
Added CastMediaRouteProviderTest cases
3 years, 8 months ago (2017-04-10 23:52:41 UTC) #11
whywhat
+David for chrome_jni_registrar.cc
3 years, 8 months ago (2017-04-10 23:54:17 UTC) #13
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2788783002/diff/40001/chrome/browser/media/android/router/media_router_android_bridge.cc File chrome/browser/media/android/router/media_router_android_bridge.cc (right): https://codereview.chromium.org/2788783002/diff/40001/chrome/browser/media/android/router/media_router_android_bridge.cc#newcode5 chrome/browser/media/android/router/media_router_android_bridge.cc:5: #include "chrome/browser/media/android/router/media_router_android_bridge.h" I did not read this file ...
3 years, 8 months ago (2017-04-11 13:18:12 UTC) #18
David Trainor- moved to gerrit
chrome_jni_registrar lgtm!
3 years, 8 months ago (2017-04-11 16:03:21 UTC) #19
whywhat
Fixed the unittests
3 years, 8 months ago (2017-04-11 16:35:00 UTC) #20
whywhat
https://codereview.chromium.org/2788783002/diff/40001/chrome/browser/media/android/router/media_router_android_bridge.cc File chrome/browser/media/android/router/media_router_android_bridge.cc (right): https://codereview.chromium.org/2788783002/diff/40001/chrome/browser/media/android/router/media_router_android_bridge.cc#newcode5 chrome/browser/media/android/router/media_router_android_bridge.cc:5: #include "chrome/browser/media/android/router/media_router_android_bridge.h" On 2017/04/11 at 13:18:12, mlamouri wrote: > ...
3 years, 8 months ago (2017-04-11 16:36:12 UTC) #21
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/2788783002/60001
3 years, 8 months ago (2017-04-11 16:36:59 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 17:52:28 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b265af93a6c5594f08c92a93a1c0...

Powered by Google App Engine
This is Rietveld 408576698