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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java

Issue 2919553002: [Payments] Remove unused files and fix coding style (Closed)
Patch Set: 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: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java
deleted file mode 100644
index c8a4321533fb911ce16f6d21ca923b6b717ee8d5..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShippingSummaryInformation.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// 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.
-
-package org.chromium.chrome.browser.payments.ui;
-
-import javax.annotation.Nullable;
-
-/** The data to show in a shipping summary section. It contains shipping address and option. */
-public class ShippingSummaryInformation {
- private SectionInformation mShippingAddress;
- private SectionInformation mShippingOption;
-
- /** Builds ShppingSummaryInformation with shipping address and option section information. */
- public ShippingSummaryInformation(
- SectionInformation shippingAddress, SectionInformation shippingOption) {
- mShippingAddress = shippingAddress;
- mShippingOption = shippingOption;
- }
-
- /**
- * Returns the label for the selected shipping address.
- *
- * @return The label for the selected shipping address or null.
- */
- @Nullable
- public String getSelectedShippingAddressLabel() {
- PaymentOption address = mShippingAddress.getSelectedItem();
- return address != null ? address.getLabel() : null;
- }
-
- /**
- * Returns the sublabel for the selected shipping address.
- *
- * @return The sublabel for the selected shipping address or null.
- */
- @Nullable
- public String getSelectedShippingAddressSublabel() {
- PaymentOption address = mShippingAddress.getSelectedItem();
- return address != null ? address.getSublabel() : null;
- }
-
- /**
- * Returns the tertiary label for the selected shipping address.
- *
- * @return The tertiary label for the selected shipping address or null.
- */
- @Nullable
- public String getSelectedShippingAddressTertiaryLabel() {
- PaymentOption address = mShippingAddress.getSelectedItem();
- return address != null ? address.getTertiaryLabel() : null;
- }
-
- /**
- * Returns the label for the selected shipping option.
- *
- * @return The label for the selected shipping option or null.
- */
- @Nullable
- public String getSelectedShippingOptionLabel() {
- PaymentOption option = mShippingOption.getSelectedItem();
- return option != null ? option.getLabel() : null;
- }
-
- /**
- * Returns the shipping address section information.
- *
- * @return The shipping address section information.
- */
- public SectionInformation getShippingAddressSectionInfo() {
- return mShippingAddress;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698