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

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: resolve code review comments from mlamouri 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 f661e7bd12d1afd8a01214d2af31566982b67cfd..5f4e15b8b0aacf4b3dd3e8191c8dfa5b23bb33a3 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
@@ -66,12 +66,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