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

Unified Diff: chrome/browser/ui/views/payments/payment_request_views_util.h

Issue 2847503002: [WebPayments] Show labels on incomplete profiles (Closed)
Patch Set: test fix 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: chrome/browser/ui/views/payments/payment_request_views_util.h
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.h b/chrome/browser/ui/views/payments/payment_request_views_util.h
index 92515391c381fcb733c7d5eea72fc8e260fe79b7..5821f18c816a408ce73f6fe634e5f7db2193cd4d 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.h
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.h
@@ -26,6 +26,7 @@ class View;
namespace payments {
class PaymentOptionsProvider;
+class PaymentsProfileComparator;
enum class PaymentShippingType;
constexpr int kPaymentRequestRowHorizontalInsets = 16;
@@ -81,7 +82,9 @@ enum class AddressStyleType { SUMMARY, DETAILED };
std::unique_ptr<views::View> GetShippingAddressLabel(
AddressStyleType type,
const std::string& locale,
- const autofill::AutofillProfile& profile);
+ const autofill::AutofillProfile& profile,
+ const PaymentOptionsProvider& options,
+ const PaymentsProfileComparator& comp);
// Extracts and formats descriptive text from the given |profile| to represent
// the contact info in the context specified by |type|. Includes/excludes name,
@@ -90,7 +93,8 @@ std::unique_ptr<views::View> GetContactInfoLabel(
AddressStyleType type,
const std::string& locale,
const autofill::AutofillProfile& profile,
- const PaymentOptionsProvider& options);
+ const PaymentOptionsProvider& options,
+ const PaymentsProfileComparator& comp);
// Creates a views::Border object that can paint the gray horizontal ruler used
// as a separator between items in the Payment Request dialog.

Powered by Google App Engine
This is Rietveld 408576698