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

Unified Diff: Source/modules/presentation/PresentationAvailabilityCallback.cpp

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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: Source/modules/presentation/PresentationAvailabilityCallback.cpp
diff --git a/Source/modules/presentation/PresentationAvailabilityCallback.cpp b/Source/modules/presentation/PresentationAvailabilityCallback.cpp
index 96b8ae93cf93851b5bdaddfedf0b586b3ef90d7d..42d63bb3e60da09dc71bfcf5afe6c667d1d29921 100644
--- a/Source/modules/presentation/PresentationAvailabilityCallback.cpp
+++ b/Source/modules/presentation/PresentationAvailabilityCallback.cpp
@@ -31,7 +31,7 @@ void PresentationAvailabilityCallback::onError(WebPresentationError* result)
OwnPtr<WebPresentationError> error = adoptPtr(result);
if (!m_resolver->executionContext() || m_resolver->executionContext()->activeDOMObjectsAreStopped())
return;
- m_resolver->reject(PresentationError::take(m_resolver.get(), error.release()));
+ m_resolver->reject(PresentationError::take(m_resolver.get(), *error));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698