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

Unified Diff: Source/modules/push_messaging/PushSubscriptionCallbacks.cpp

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 4 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/push_messaging/PushSubscriptionCallbacks.cpp
diff --git a/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp b/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
index 80ecf4f30efdb8dfcbfb15fdcb15730e5dd6f467..afc108d2784d1c523c76170e49383798e5ec22c2 100644
--- a/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
+++ b/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
@@ -41,7 +41,7 @@ void PushSubscriptionCallbacks::onError(WebPushError* error)
OwnPtr<WebPushError> ownError = adoptPtr(error);
if (!m_resolver->executionContext() || m_resolver->executionContext()->activeDOMObjectsAreStopped())
return;
- m_resolver->reject(PushError::take(m_resolver.get(), ownError.release()));
+ m_resolver->reject(PushError::take(m_resolver.get(), *ownError));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698