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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp

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: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
index 361422438fff38979350668503479c75aecd251a..d5c698d718f625a7e434252f4422c958cdbc3016 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
@@ -152,7 +152,7 @@ ScriptPromise PresentationRequest::start(ScriptState* scriptState) {
"The PresentationRequest is no longer associated to a frame."));
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
- client->startSession(
+ client->startPresentation(
m_urls, WTF::makeUnique<PresentationConnectionCallbacks>(resolver, this));
return resolver->promise();
}
@@ -179,11 +179,12 @@ ScriptPromise PresentationRequest::reconnect(ScriptState* scriptState,
PresentationConnection* existingConnection =
controller->findExistingConnection(m_urls, id);
if (existingConnection) {
- client->joinSession(
- m_urls, id, WTF::makeUnique<ExistingPresentationConnectionCallbacks>(
- resolver, existingConnection));
+ client->reconnectPresentation(
+ m_urls, id,
+ WTF::makeUnique<ExistingPresentationConnectionCallbacks>(
+ resolver, existingConnection));
} else {
- client->joinSession(
+ client->reconnectPresentation(
m_urls, id,
WTF::makeUnique<PresentationConnectionCallbacks>(resolver, this));
}
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698