| Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
|
| index 1e5772bafb44fa7f2b3170f274a7bb21dfb12280..02b9f923d96b6b980480210e5b45f93826d595e8 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogContentView.java
|
| @@ -233,6 +233,21 @@ public class AutofillDialogContentView extends LinearLayout {
|
| }
|
|
|
| /**
|
| + * Updates the legal documents footer.
|
| + * @param legalDocumentsText The text to show, or a null/empty string.
|
| + */
|
| + public void updateLegalDocumentsText(String legalDocumentsText) {
|
| + TextView legalView = (TextView) findViewById(R.id.terms_info);
|
| + if (TextUtils.isEmpty(legalDocumentsText)) {
|
| + legalView.setVisibility(View.GONE);
|
| + return;
|
| + }
|
| +
|
| + legalView.setText(legalDocumentsText);
|
| + legalView.setVisibility(View.VISIBLE);
|
| + }
|
| +
|
| + /**
|
| * Updates a dropdown with the given items and adds default items to the end.
|
| * @param section The dialog section.
|
| * @param items The {@link AutofillDialogMenuItem} array to update the dropdown with.
|
|
|