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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 6936de9fac1e5a6508af5e0c2d6b70f405e8ed46..e3d6330c98abe1454f59fbdd21e4f5db2004f081 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -656,8 +656,9 @@ ScriptPromise PaymentRequest::show(ScriptState* scriptState) {
if (!scriptState->domWindow() || !scriptState->domWindow()->frame())
return ScriptPromise::rejectWithDOMException(
- scriptState, DOMException::create(InvalidStateError,
- "Cannot show the payment request"));
+ scriptState,
+ DOMException::create(InvalidStateError,
+ "Cannot show the payment request"));
m_paymentProvider->Show();
@@ -688,8 +689,9 @@ ScriptPromise PaymentRequest::canMakePayment(ScriptState* scriptState) {
if (!m_paymentProvider.is_bound() || m_canMakePaymentResolver ||
!scriptState->contextIsValid()) {
return ScriptPromise::rejectWithDOMException(
- scriptState, DOMException::create(InvalidStateError,
- "Cannot query payment request"));
+ scriptState,
+ DOMException::create(InvalidStateError,
+ "Cannot query payment request"));
}
m_paymentProvider->CanMakePayment();
@@ -714,8 +716,9 @@ ScriptPromise PaymentRequest::complete(ScriptState* scriptState,
PaymentComplete result) {
if (m_completeResolver)
return ScriptPromise::rejectWithDOMException(
- scriptState, DOMException::create(InvalidStateError,
- "Already called complete() once"));
+ scriptState,
+ DOMException::create(InvalidStateError,
+ "Already called complete() once"));
if (!m_completeTimer.isActive())
return ScriptPromise::rejectWithDOMException(

Powered by Google App Engine
This is Rietveld 408576698