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

Issue 2783363002: [Android,Cast] Report correctly when devices are not available. (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, Zhiqiang Zhang (Slow)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android,Cast] Report correctly when devices are not available. The ChromeMediaRouterDialogController now reports when the source URN is not supported so that the native side can reject the PresentationRequest correctly. CastMediaRouteProvider now reports no sinks available if the source URN is not supported or if Android MediaRouter's API are not present (like on JB MR1). For the latter, we now do create ChromeMRP when MediaRouter is null and check if it's null before using (was already checked everywhere, except for one spot changed in this CL). BUG=706882 TEST=manual at https://googlechrome.github.io/samples/presentation-api/ Review-Url: https://codereview.chromium.org/2783363002 Cr-Commit-Position: refs/heads/master@{#462887} Committed: https://chromium.googlesource.com/chromium/src/+/8a9962171b6d2f8e98c9d312c433087425b3f154

Patch Set 1 #

Patch Set 2 : Rebased and added junit test #

Total comments: 2

Patch Set 3 : Fixed the test URLs #

Messages

Total messages: 20 (13 generated)
whywhat
PTaL
3 years, 8 months ago (2017-03-30 19:04:46 UTC) #2
mlamouri (slow - plz ping)
lgtm but could you add tests? :) +zqzhang@ in case of he has ideas in ...
3 years, 8 months ago (2017-03-30 21:30:13 UTC) #7
whywhat
Rebased and added junit test
3 years, 8 months ago (2017-04-06 23:35:42 UTC) #8
mlamouri (slow - plz ping)
still lgtm with tests comments taken into account https://codereview.chromium.org/2783363002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProviderTest.java File chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProviderTest.java (right): https://codereview.chromium.org/2783363002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProviderTest.java#newcode33 chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProviderTest.java:33: "https://google.com/cast/#__castAppId__=EF1A139F"; ...
3 years, 8 months ago (2017-04-07 11:20:20 UTC) #13
whywhat
Fixed the test URLs
3 years, 8 months ago (2017-04-07 15:17:16 UTC) #14
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/2783363002/40001
3 years, 8 months ago (2017-04-07 15:23:59 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 16:28:47 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8a9962171b6d2f8e98c9d312c433...

Powered by Google App Engine
This is Rietveld 408576698