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

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

Issue 2737413003: [Presentation API] Remove references to presentation sessions. (Closed)
Patch Set: Update PresentationServiceDelegateImpl unittest 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/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 49eb3edf850e55b6add0adc8cc8c93a81cc6fcaa..0dceafaee2a93682285da25b1c86c0107a12a8b0 100644
--- a/chrome/browser/media/router/create_presentation_connection_request.cc
+++ b/chrome/browser/media/router/create_presentation_connection_request.cc
@@ -8,7 +8,7 @@
#include "chrome/browser/media/router/route_request_result.h"
#include "url/origin.h"
-using content::PresentationSessionInfo;
+using content::PresentationInfo;
using content::PresentationError;
namespace media_router {
@@ -17,8 +17,8 @@ CreatePresentationConnectionRequest::CreatePresentationConnectionRequest(
const RenderFrameHostId& render_frame_host_id,
const std::vector<GURL>& presentation_urls,
const url::Origin& frame_origin,
- const PresentationSessionSuccessCallback& success_cb,
- const PresentationSessionErrorCallback& error_cb)
+ const PresentationConnectionCallback& success_cb,
+ const PresentationConnectionErrorCallback& error_cb)
: presentation_request_(render_frame_host_id,
presentation_urls,
frame_origin),
@@ -43,8 +43,7 @@ void CreatePresentationConnectionRequest::InvokeSuccessCallback(
DCHECK(!cb_invoked_);
if (!cb_invoked_) {
success_cb_.Run(
- content::PresentationSessionInfo(presentation_url, presentation_id),
- route);
+ content::PresentationInfo(presentation_url, presentation_id), route);
cb_invoked_ = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698