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

Unified Diff: ios/chrome/browser/payments/payment_request_util.h

Issue 2965073002: [Payment Request] Moves PaymentRequest into the payments namespace (Closed)
Patch Set: rebase Created 3 years, 5 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: ios/chrome/browser/payments/payment_request_util.h
diff --git a/ios/chrome/browser/payments/payment_request_util.h b/ios/chrome/browser/payments/payment_request_util.h
index ddf6ab2ef01e7cb5a5da4ce7c0e455082bd5b6b2..5a054a132de2b85ea3f1c324c1355a356753f7c6 100644
--- a/ios/chrome/browser/payments/payment_request_util.h
+++ b/ios/chrome/browser/payments/payment_request_util.h
@@ -18,9 +18,8 @@ class AutofillProfile;
namespace payments {
class PaymentInstrument;
-} // namespace payments
-
class PaymentRequest;
+} // namespace payments
namespace payment_request_util {
@@ -52,7 +51,7 @@ NSString* GetEmailLabelFromAutofillProfile(
// Helper function to create a notification label for an address cell from an
// autofill profile. Returns nil if the resulting label is empty.
NSString* GetAddressNotificationLabelFromAutofillProfile(
- PaymentRequest& payment_request,
+ payments::PaymentRequest& payment_request,
const autofill::AutofillProfile& profile);
// Helper function to create a notification label for what's missing from a
@@ -68,12 +67,12 @@ NSString* GetShippingSectionTitle(payments::PaymentShippingType shipping_type);
// Returns the error message to be displayed in the shipping address selection
// view given the shipping type specified in |payment_request|.
NSString* GetShippingAddressSelectorErrorMessage(
- const PaymentRequest& payment_request);
+ const payments::PaymentRequest& payment_request);
// Returns the error message to be displayed in the shipping option selection
// view given the shipping type specified in |payment_request|.
NSString* GetShippingOptionSelectorErrorMessage(
- const PaymentRequest& payment_request);
+ const payments::PaymentRequest& payment_request);
} // namespace payment_request_util
« no previous file with comments | « ios/chrome/browser/payments/payment_request_unittest.mm ('k') | ios/chrome/browser/payments/payment_request_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698