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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.payments.ui; 5 package org.chromium.chrome.browser.payments.ui;
6 6
7 import static org.chromium.chrome.browser.payments.ui.PaymentRequestSection.EDIT _BUTTON_GONE; 7 import static org.chromium.chrome.browser.payments.ui.PaymentRequestSection.EDIT _BUTTON_GONE;
8 8
9 import android.animation.Animator; 9 import android.animation.Animator;
10 import android.animation.AnimatorListenerAdapter; 10 import android.animation.AnimatorListenerAdapter;
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 TYPE_PAYMENT_METHODS, createUpdateSectionCallback(TYPE_PAYME NT_METHODS)); 1061 TYPE_PAYMENT_METHODS, createUpdateSectionCallback(TYPE_PAYME NT_METHODS));
1062 } else { 1062 } else {
1063 updateSectionVisibility(); 1063 updateSectionVisibility();
1064 } 1064 }
1065 } 1065 }
1066 1066
1067 private void addCardAndAddressOptionsSettingsView(LinearLayout parent) { 1067 private void addCardAndAddressOptionsSettingsView(LinearLayout parent) {
1068 String message; 1068 String message;
1069 if (!mShowDataSource) { 1069 if (!mShowDataSource) {
1070 message = mContext.getString(R.string.payments_card_and_address_sett ings); 1070 message = mContext.getString(R.string.payments_card_and_address_sett ings);
1071 } else if (ChromeSigninController.get(mContext).isSignedIn()) { 1071 } else if (ChromeSigninController.get().isSignedIn()) {
1072 message = mContext.getString(R.string.payments_card_and_address_sett ings_signed_in, 1072 message = mContext.getString(R.string.payments_card_and_address_sett ings_signed_in,
1073 ChromeSigninController.get(mContext).getSignedInAccountName( )); 1073 ChromeSigninController.get().getSignedInAccountName());
1074 } else { 1074 } else {
1075 message = mContext.getString(R.string.payments_card_and_address_sett ings_signed_out); 1075 message = mContext.getString(R.string.payments_card_and_address_sett ings_signed_out);
1076 } 1076 }
1077 1077
1078 NoUnderlineClickableSpan settingsSpan = new NoUnderlineClickableSpan() { 1078 NoUnderlineClickableSpan settingsSpan = new NoUnderlineClickableSpan() {
1079 @Override 1079 @Override
1080 public void onClick(View widget) { 1080 public void onClick(View widget) {
1081 mClient.onCardAndAddressSettingsClicked(); 1081 mClient.onCardAndAddressSettingsClicked();
1082 } 1082 }
1083 }; 1083 };
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 sObserverForTest.onPaymentRequestReadyForInput(this); 1410 sObserverForTest.onPaymentRequestReadyForInput(this);
1411 } 1411 }
1412 } 1412 }
1413 1413
1414 private void notifySelectionChecked() { 1414 private void notifySelectionChecked() {
1415 if (sObserverForTest != null) { 1415 if (sObserverForTest != null) {
1416 sObserverForTest.onPaymentRequestSelectionChecked(this); 1416 sObserverForTest.onPaymentRequestSelectionChecked(this);
1417 } 1417 }
1418 } 1418 }
1419 } 1419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698