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.accounts.Account; | 7 import android.accounts.Account; |
8 import android.app.Dialog; | 8 import android.app.Dialog; |
9 import android.app.DialogFragment; | 9 import android.app.DialogFragment; |
10 import android.app.FragmentManager; | 10 import android.app.FragmentManager; |
11 import android.app.FragmentTransaction; | 11 import android.app.FragmentTransaction; |
12 import android.app.ProgressDialog; | 12 import android.app.ProgressDialog; |
13 import android.os.Bundle; | 13 import android.os.Bundle; |
14 import android.support.v4.app.FragmentActivity; | 14 import android.support.v4.app.FragmentActivity; |
15 import android.util.Log; | 15 import android.util.Log; |
16 | 16 |
17 import org.chromium.base.library_loader.ProcessInitException; | 17 import org.chromium.base.library_loader.ProcessInitException; |
18 import org.chromium.chrome.R; | 18 import org.chromium.chrome.R; |
19 import org.chromium.chrome.browser.ChromeApplication; | 19 import org.chromium.chrome.browser.ChromeApplication; |
20 import org.chromium.chrome.browser.init.ChromeBrowserInitializer; | 20 import org.chromium.chrome.browser.init.ChromeBrowserInitializer; |
21 import org.chromium.chrome.browser.sync.ProfileSyncService; | 21 import org.chromium.chrome.browser.sync.ProfileSyncService; |
22 import org.chromium.chrome.browser.sync.SyncController; | 22 import org.chromium.chrome.browser.sync.SyncController; |
23 import org.chromium.sync.signin.ChromeSigninController; | 23 import org.chromium.components.sync.signin.ChromeSigninController; |
24 | 24 |
25 /** | 25 /** |
26 * This activity is used for requesting a sync passphrase from the user. Typical
ly, | 26 * This activity is used for requesting a sync passphrase from the user. Typical
ly, |
27 * this will be the target of an Android notification. | 27 * this will be the target of an Android notification. |
28 */ | 28 */ |
29 public class PassphraseActivity extends FragmentActivity implements | 29 public class PassphraseActivity extends FragmentActivity implements |
30 PassphraseDialogFragment.Listener, | 30 PassphraseDialogFragment.Listener, |
31 FragmentManager.OnBackStackChangedListener { | 31 FragmentManager.OnBackStackChangedListener { |
32 | 32 |
33 public static final String FRAGMENT_PASSPHRASE = "passphrase_fragment"; | 33 public static final String FRAGMENT_PASSPHRASE = "passphrase_fragment"; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 */ | 154 */ |
155 public static class SpinnerDialogFragment extends DialogFragment { | 155 public static class SpinnerDialogFragment extends DialogFragment { |
156 @Override | 156 @Override |
157 public Dialog onCreateDialog(Bundle savedInstanceState) { | 157 public Dialog onCreateDialog(Bundle savedInstanceState) { |
158 ProgressDialog dialog = new ProgressDialog(getActivity()); | 158 ProgressDialog dialog = new ProgressDialog(getActivity()); |
159 dialog.setMessage(getResources().getString(R.string.sync_loading)); | 159 dialog.setMessage(getResources().getString(R.string.sync_loading)); |
160 return dialog; | 160 return dialog; |
161 } | 161 } |
162 } | 162 } |
163 } | 163 } |
OLD | NEW |