Index: chrome/browser/media/router/create_presentation_session_request.cc |
diff --git a/chrome/browser/media/router/create_presentation_session_request.cc b/chrome/browser/media/router/create_presentation_session_request.cc |
index b3b4bc851e45d1547f98bdfce75553cb1bd10fdd..0296030af127588cacd78e8cc8c8225da7ad6e66 100644 |
--- a/chrome/browser/media/router/create_presentation_session_request.cc |
+++ b/chrome/browser/media/router/create_presentation_session_request.cc |
@@ -34,14 +34,15 @@ CreatePresentationSessionRequest::~CreatePresentationSessionRequest() { |
void CreatePresentationSessionRequest::InvokeSuccessCallback( |
const std::string& presentation_id, |
- const MediaRoute::Id& route_id) { |
+ const MediaRoute::Id& route_id, |
+ bool is_one_ua_presentation) { |
DCHECK(!cb_invoked_); |
if (!cb_invoked_) { |
// Overwrite presentation ID. |
success_cb_.Run( |
content::PresentationSessionInfo( |
PresentationUrlFromMediaSource(media_source_), presentation_id), |
- route_id); |
+ route_id, is_one_ua_presentation); |
cb_invoked_ = true; |
} |
} |
@@ -60,13 +61,14 @@ void CreatePresentationSessionRequest::HandleRouteResponse( |
scoped_ptr<CreatePresentationSessionRequest> presentation_request, |
const MediaRoute* route, |
const std::string& presentation_id, |
- const std::string& error) { |
+ const std::string& error, |
+ bool is_one_ua_presentation) { |
if (!route) { |
presentation_request->InvokeErrorCallback( |
content::PresentationError(content::PRESENTATION_ERROR_UNKNOWN, error)); |
} else { |
- presentation_request->InvokeSuccessCallback(presentation_id, |
- route->media_route_id()); |
+ presentation_request->InvokeSuccessCallback( |
+ presentation_id, route->media_route_id(), is_one_ua_presentation); |
} |
} |