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

Unified Diff: components/payments/core/strings_util.h

Issue 2784973002: Move string helper functions to components/core for iOS use. (Closed)
Patch Set: Deps, part 3 Created 3 years, 9 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
« no previous file with comments | « components/payments/core/DEPS ('k') | components/payments/core/strings_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/strings_util.h
diff --git a/components/payments/core/strings_util.h b/components/payments/core/strings_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..96530252dca8915a6741b29cd8e05350009cdf67
--- /dev/null
+++ b/components/payments/core/strings_util.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PAYMENTS_CORE_STRINGS_UTIL_H_
+#define COMPONENTS_PAYMENTS_CORE_STRINGS_UTIL_H_
+
+#include "base/strings/string16.h"
+#include "components/payments/core/payment_options_provider.h"
+
+namespace payments {
+
+// Gets the appropriate display string for the Shipping Address string for the
+// given PaymentShippingType.
+base::string16 GetShippingAddressSectionString(
+ PaymentShippingType shipping_type);
+
+// Gets the appropriate display string for the Shipping Option string for the
+// given PaymentShippingType.
+base::string16 GetShippingOptionSectionString(
+ PaymentShippingType shipping_type);
+
+} // namespace payments
+
+#endif // COMPONENTS_PAYMENTS_CORE_STRINGS_UTIL_H_
« no previous file with comments | « components/payments/core/DEPS ('k') | components/payments/core/strings_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698