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

Unified Diff: chrome/browser/media/router/create_presentation_connection_request.cc

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: chrome/browser/media/router/create_presentation_connection_request.cc
diff --git a/chrome/browser/media/router/create_presentation_connection_request.cc b/chrome/browser/media/router/create_presentation_connection_request.cc
index d96d1915b9ef1238ef89c197a600036de5675c7c..6bb314d21afc2bb40fee73a8ca429714d501b237 100644
--- a/chrome/browser/media/router/create_presentation_connection_request.cc
+++ b/chrome/browser/media/router/create_presentation_connection_request.cc
@@ -35,13 +35,13 @@ CreatePresentationConnectionRequest::~CreatePresentationConnectionRequest() {
void CreatePresentationConnectionRequest::InvokeSuccessCallback(
const std::string& presentation_id,
- const MediaRoute::Id& route_id) {
+ const MediaRoute& route) {
DCHECK(!cb_invoked_);
if (!cb_invoked_) {
success_cb_.Run(
content::PresentationSessionInfo(
presentation_request_.presentation_url(), presentation_id),
- route_id);
+ route);
cb_invoked_ = true;
}
}
@@ -63,8 +63,8 @@ void CreatePresentationConnectionRequest::HandleRouteResponse(
presentation_request->InvokeErrorCallback(content::PresentationError(
content::PRESENTATION_ERROR_UNKNOWN, result.error()));
} else {
- presentation_request->InvokeSuccessCallback(
- result.presentation_id(), result.route()->media_route_id());
+ presentation_request->InvokeSuccessCallback(result.presentation_id(),
+ *result.route());
}
}

Powered by Google App Engine
This is Rietveld 408576698