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

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

Issue 2731043002: [Media Router] Add a presentation id to MediaRoute mapping in the MR (Closed)
Patch Set: resolve code review comments from Derek Created 3 years, 9 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/presentation_service_delegate_impl.cc
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.cc b/chrome/browser/media/router/presentation_service_delegate_impl.cc
index 10dd0d6aea22c73034fece47076eec082be46854..67ef735473bdf56a3a66a4a32b9de9fc8c2d55a5 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl.cc
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.cc
@@ -207,6 +207,7 @@ void PresentationFrame::OnPresentationSessionStarted(
const MediaRoute& route) {
presentation_id_to_route_.insert(
std::make_pair(session.presentation_id, route));
+ router_->SetPresentationId(route.media_route_id(), session.presentation_id);
}
const MediaRoute::Id PresentationFrame::GetRouteId(

Powered by Google App Engine
This is Rietveld 408576698