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

Unified Diff: Source/modules/push_messaging/PushPermissionStatusCallbacks.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/PushPermissionStatusCallbacks.cpp
diff --git a/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp b/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp
index 789530a3bae55d48d2ab21352eac503a0993c351..b3c6ffa8fbb414462b028124c630b3e476470de8 100644
--- a/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp
+++ b/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp
@@ -30,7 +30,7 @@ void PushPermissionStatusCallbacks::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));
}
// static
« no previous file with comments | « Source/modules/push_messaging/PushError.cpp ('k') | Source/modules/push_messaging/PushSubscriptionCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698