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

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

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: merge and refactor Created 3 years, 11 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/PresentationController.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
index f20aeee43302581e7ab792e1c73b4e2d32adbdba..5e8d5e553b417b946b751042c4d210dd9f4594f5 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
@@ -64,12 +64,13 @@ DEFINE_TRACE(PresentationController) {
ContextLifecycleObserver::trace(visitor);
}
-void PresentationController::didStartDefaultSession(
+WebPresentationConnection* PresentationController::didStartDefaultSession(
const WebPresentationSessionInfo& sessionInfo) {
if (!m_presentation || !m_presentation->defaultRequest())
- return;
- PresentationConnection::take(this, sessionInfo,
- m_presentation->defaultRequest());
+ return nullptr;
+
+ return PresentationConnection::take(this, sessionInfo,
+ m_presentation->defaultRequest());
}
void PresentationController::didChangeSessionState(

Powered by Google App Engine
This is Rietveld 408576698