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

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

Issue 1259073004: [Presentation API] Change ListenForSessionMessages API to client-style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 5 years, 4 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_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 49993895b37a6977215d8bd321d31096fc9bb130..1f1e6e90068f03b8486d5e2cf5a96ff957a2eafc 100644
--- a/chrome/browser/media/router/create_presentation_session_request.cc
+++ b/chrome/browser/media/router/create_presentation_session_request.cc
@@ -35,12 +35,12 @@ CreatePresentationSessionRequest::~CreatePresentationSessionRequest() {
}
void CreatePresentationSessionRequest::MaybeInvokeSuccessCallback(
+ const std::string& presentation_id,
const MediaRoute::Id& route_id) {
if (!cb_invoked_) {
// Overwrite presentation ID.
success_cb_.Run(content::PresentationSessionInfo(
- presentation_info_.presentation_url,
- GetPresentationIdAndUrl(route_id).first),
+ presentation_info_.presentation_url, presentation_id),
route_id);
cb_invoked_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698