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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_ui.cc

Issue 2038423006: [Media Router] Close dialog after resolving presentation request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/ui/webui/media_router/media_router_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/media_router/media_router_ui.cc
diff --git a/chrome/browser/ui/webui/media_router/media_router_ui.cc b/chrome/browser/ui/webui/media_router/media_router_ui.cc
index bb045896b2dbbab917e2daab026bbe6732e93690..cdfbfaf82bf6c4d6e68e1ab01617343a9f8f540c 100644
--- a/chrome/browser/ui/webui/media_router/media_router_ui.cc
+++ b/chrome/browser/ui/webui/media_router/media_router_ui.cc
@@ -422,6 +422,9 @@ bool MediaRouterUI::SetRouteParameters(
route_response_callbacks->push_back(
base::Bind(&CreatePresentationConnectionRequest::HandleRouteResponse,
base::Passed(&create_session_request_)));
+ route_response_callbacks->push_back(
imcheng 2016/06/08 01:49:20 I don't think we should invoke MediaRouterUI::OnRo
btolsch 2016/06/08 02:28:50 Done.
+ base::Bind(&MediaRouterUI::HandleCreateSessionRequestRouteResponse,
+ weak_factory_.GetWeakPtr()));
} else if (presentation_service_delegate_) {
route_response_callbacks->push_back(
base::Bind(&PresentationServiceDelegateImpl::OnRouteResponse,
@@ -543,6 +546,11 @@ void MediaRouterUI::OnRouteResponseReceived(
SendIssueForRouteTimeout(cast_mode, presentation_request_source_name);
}
+void MediaRouterUI::HandleCreateSessionRequestRouteResponse(
+ const RouteRequestResult&) {
+ Close();
+}
+
void MediaRouterUI::OnSearchSinkResponseReceived(
MediaCastMode cast_mode,
const MediaSink::Id& found_sink_id) {
« no previous file with comments | « chrome/browser/ui/webui/media_router/media_router_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698