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

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

Issue 2807023002: PaymentRequest: Use "NotAllowedError" instead of "QuotaExceededError". (Closed)
Patch Set: PaymentRequest: Use "NotAllowedError" instead of "QuotaExceededError". Created 3 years, 8 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 fc07e3fb3991d7db200726ecbaea90b82262b947..d0494f2a68399b3e430e349227c018ae4b888d9b 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -1061,8 +1061,8 @@ void PaymentRequest::OnCanMakePayment(CanMakePaymentQueryResult result) {
can_make_payment_resolver_->Resolve(false);
break;
case CanMakePaymentQueryResult::QUERY_QUOTA_EXCEEDED:
- can_make_payment_resolver_->Reject(
- DOMException::Create(kQuotaExceededError, "Query quota exceeded"));
+ can_make_payment_resolver_->Reject(DOMException::Create(
+ kNotAllowedError, "Not allowed to check whether can make payment"));
break;
}
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppCanMakePaymentQueryTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698