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

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

Issue 2602523002: [Presentation API] Resolve PresentationRequest::reconnect() with existing presentation connection i… (Closed)
Patch Set: remove getExecutionContext() null check in PresentationRequest::reconnect() 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/PresentationConnectionCallbacks.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
index 8de07df2ffd49db35709cf8c24c0dc6e8d4b0b0d..30c89bb1c5090ddda6219a54eea174d9554cc423 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp
@@ -26,8 +26,9 @@ PresentationConnectionCallbacks::PresentationConnectionCallbacks(
void PresentationConnectionCallbacks::onSuccess(
const WebPresentationSessionInfo& sessionInfo) {
if (!m_resolver->getExecutionContext() ||
- m_resolver->getExecutionContext()->isContextDestroyed())
+ m_resolver->getExecutionContext()->isContextDestroyed()) {
return;
+ }
m_resolver->resolve(
PresentationConnection::take(m_resolver.get(), sessionInfo, m_request));
}

Powered by Google App Engine
This is Rietveld 408576698