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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 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: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
index 22f3dc1edbf4c0fd0b5f64f94ebbbf0e28e4627f..cfcf877aab640b5a3a287983089fa29aaff41592 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -408,6 +408,11 @@ ScriptPromise PaymentRequest::abort(ScriptState* scriptState)
return m_abortResolver->promise();
}
+bool PaymentRequest::hasPendingActivity() const
+{
+ return m_showResolver || m_completeResolver;
+}
+
const AtomicString& PaymentRequest::interfaceName() const
{
return EventTargetNames::PaymentRequest;
@@ -528,11 +533,6 @@ void PaymentRequest::contextDestroyed()
clearResolversAndCloseMojoConnection();
}
-bool PaymentRequest::hasPendingActivity() const
-{
- return m_showResolver || m_completeResolver;
-}
-
void PaymentRequest::OnShippingAddressChange(mojom::blink::PaymentAddressPtr address)
{
DCHECK(m_showResolver);

Powered by Google App Engine
This is Rietveld 408576698