| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.sync.ui; | 5 package org.chromium.chrome.browser.sync.ui; |
| 6 | 6 |
| 7 import android.app.Dialog; | 7 import android.app.Dialog; |
| 8 import android.app.DialogFragment; | 8 import android.app.DialogFragment; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.DialogInterface; | 10 import android.content.DialogInterface; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 import android.widget.AdapterView.OnItemClickListener; | 23 import android.widget.AdapterView.OnItemClickListener; |
| 24 import android.widget.ArrayAdapter; | 24 import android.widget.ArrayAdapter; |
| 25 import android.widget.CheckedTextView; | 25 import android.widget.CheckedTextView; |
| 26 import android.widget.ListView; | 26 import android.widget.ListView; |
| 27 import android.widget.TextView; | 27 import android.widget.TextView; |
| 28 | 28 |
| 29 import org.chromium.base.BuildInfo; | 29 import org.chromium.base.BuildInfo; |
| 30 import org.chromium.base.VisibleForTesting; | 30 import org.chromium.base.VisibleForTesting; |
| 31 import org.chromium.chrome.R; | 31 import org.chromium.chrome.R; |
| 32 import org.chromium.chrome.browser.util.IntentUtils; | 32 import org.chromium.chrome.browser.util.IntentUtils; |
| 33 import org.chromium.sync.PassphraseType; | 33 import org.chromium.components.sync.PassphraseType; |
| 34 import org.chromium.ui.text.SpanApplier; | 34 import org.chromium.ui.text.SpanApplier; |
| 35 import org.chromium.ui.text.SpanApplier.SpanInfo; | 35 import org.chromium.ui.text.SpanApplier.SpanInfo; |
| 36 | 36 |
| 37 import java.text.DateFormat; | 37 import java.text.DateFormat; |
| 38 import java.util.ArrayList; | 38 import java.util.ArrayList; |
| 39 import java.util.Date; | 39 import java.util.Date; |
| 40 import java.util.List; | 40 import java.util.List; |
| 41 import java.util.Set; | 41 import java.util.Set; |
| 42 | 42 |
| 43 /** | 43 /** |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 private String getPassphraseDateStringFromArguments() { | 238 private String getPassphraseDateStringFromArguments() { |
| 239 long passphraseTime = getArguments().getLong(ARG_PASSPHRASE_TIME); | 239 long passphraseTime = getArguments().getLong(ARG_PASSPHRASE_TIME); |
| 240 DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM); | 240 DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM); |
| 241 return df.format(new Date(passphraseTime)); | 241 return df.format(new Date(passphraseTime)); |
| 242 } | 242 } |
| 243 | 243 |
| 244 private boolean getIsEncryptEverythingAllowedFromArguments() { | 244 private boolean getIsEncryptEverythingAllowedFromArguments() { |
| 245 return getArguments().getBoolean(ARG_IS_ENCRYPT_EVERYTHING_ALLOWED); | 245 return getArguments().getBoolean(ARG_IS_ENCRYPT_EVERYTHING_ALLOWED); |
| 246 } | 246 } |
| 247 } | 247 } |
| OLD | NEW |