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

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: Rebase 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..265b80d297a5180c7cf4304683b5b17b0abcb0ba 100644
--- a/chrome/browser/media/router/create_presentation_session_request.cc
+++ b/chrome/browser/media/router/create_presentation_session_request.cc
@@ -38,10 +38,7 @@ void CreatePresentationSessionRequest::MaybeInvokeSuccessCallback(
const MediaRoute::Id& route_id) {
if (!cb_invoked_) {
// Overwrite presentation ID.
mark a. foltz 2015/08/04 23:47:02 Update comment?
imcheng 2015/08/05 21:38:35 I partially reverted the code here since we still
- success_cb_.Run(content::PresentationSessionInfo(
- presentation_info_.presentation_url,
- GetPresentationIdAndUrl(route_id).first),
- route_id);
+ success_cb_.Run(presentation_info_, route_id);
cb_invoked_ = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698