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

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

Issue 2847503002: [WebPayments] Show labels on incomplete profiles (Closed)
Patch Set: ios namespace 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 a6a2ef0473751488a294e5b9a3864b86b86e155f..4561a71dcc9b6e08c9580f6c2a6844c95bf516e1 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;
@@ -80,7 +81,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,
@@ -89,7 +92,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