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

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

Issue 2876663002: [Web Payments] Add data attribution string to dialog (Closed)
Patch Set: Address comments Created 3 years, 7 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_response_helper.cc
diff --git a/components/payments/content/payment_response_helper.cc b/components/payments/content/payment_response_helper.cc
index 9a3a8e5e8766041baaae1845d9b8f36913d9ae64..420fb4309dbe03831d47e33ca6f1a3459916fdcf 100644
--- a/components/payments/content/payment_response_helper.cc
+++ b/components/payments/content/payment_response_helper.cc
@@ -4,6 +4,8 @@
#include "components/payments/content/payment_response_helper.h"
+#include <string>
+
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/autofill_country.h"
@@ -61,9 +63,9 @@ PaymentResponseHelper::PaymentResponseHelper(
// Start to get the instrument details. Will call back into
// OnInstrumentDetailsReady.
selected_instrument_->InvokePaymentApp(this);
-};
+}
-PaymentResponseHelper::~PaymentResponseHelper(){};
+PaymentResponseHelper::~PaymentResponseHelper() {}
// static
mojom::PaymentAddressPtr
@@ -185,6 +187,7 @@ void PaymentResponseHelper::GeneratePaymentResponse() {
}
delegate_->OnPaymentResponseReady(std::move(payment_response));
+ payment_request_delegate_->MarkFirstTransactionAsCompleted();
}
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698