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

Unified Diff: chrome/browser/media/android/router/media_router_dialog_controller_android.cc

Issue 2783363002: [Android,Cast] Report correctly when devices are not available. (Closed)
Patch Set: Fixed the test URLs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/media/android/router/media_router_dialog_controller_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/android/router/media_router_dialog_controller_android.cc
diff --git a/chrome/browser/media/android/router/media_router_dialog_controller_android.cc b/chrome/browser/media/android/router/media_router_dialog_controller_android.cc
index cfd8ee04550af190a874d77ecd9b7923c0cb5a41..394ec70dc5cffad1a6bfd690a7e022f90984c2e7 100644
--- a/chrome/browser/media/android/router/media_router_dialog_controller_android.cc
+++ b/chrome/browser/media/android/router/media_router_dialog_controller_android.cc
@@ -87,6 +87,18 @@ void MediaRouterDialogControllerAndroid::OnDialogCancelled(
CancelPresentationRequest();
}
+void MediaRouterDialogControllerAndroid::OnMediaSourceNotSupported(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ std::unique_ptr<CreatePresentationConnectionRequest> request =
+ TakeCreateConnectionRequest();
+ if (!request)
+ return;
+
+ request->InvokeErrorCallback(content::PresentationError(
+ content::PRESENTATION_ERROR_NO_AVAILABLE_SCREENS, "No screens found."));
+}
+
void MediaRouterDialogControllerAndroid::CancelPresentationRequest() {
std::unique_ptr<CreatePresentationConnectionRequest> request =
TakeCreateConnectionRequest();
« no previous file with comments | « chrome/browser/media/android/router/media_router_dialog_controller_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698