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

Unified Diff: components/payments/content/payment_request_spec.cc

Issue 2815723002: [Web Payments] Add Spinners and timeout while waiting for UpdateWith (Closed)
Patch Set: Address comments. 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: components/payments/content/payment_request_spec.cc
diff --git a/components/payments/content/payment_request_spec.cc b/components/payments/content/payment_request_spec.cc
index bec17e27c30289c3bf12b8a92d23a2122d1c1e19..6fbfc5f63cd187569f5ef4135a29797cf38fe317 100644
--- a/components/payments/content/payment_request_spec.cc
+++ b/components/payments/content/payment_request_spec.cc
@@ -127,6 +127,13 @@ std::string PaymentRequestSpec::GetFormattedCurrencyCode() {
return formatter->formatted_currency_code();
}
+void PaymentRequestSpec::StartWaitingForUpdateWith(
+ PaymentRequestSpec::UpdateReason reason) {
+ for (auto& observer : observers_) {
+ observer.OnStartUpdating(reason);
+ }
+}
+
void PaymentRequestSpec::PopulateValidatedMethodData(
const std::vector<mojom::PaymentMethodDataPtr>& method_data_mojom) {
if (method_data_mojom.empty()) {
« no previous file with comments | « components/payments/content/payment_request_spec.h ('k') | components/payments/content/payment_request_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698