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.firstrun; | 5 package org.chromium.chrome.browser.firstrun; |
6 | 6 |
7 import android.accounts.Account; | 7 import android.accounts.Account; |
8 import android.content.Context; | 8 import android.content.Context; |
9 | 9 |
10 import org.chromium.base.Callback; | 10 import org.chromium.base.Callback; |
11 import org.chromium.base.Log; | 11 import org.chromium.base.Log; |
12 import org.chromium.chrome.browser.services.AndroidEduAndChildAccountHelper; | 12 import org.chromium.chrome.browser.services.AndroidEduAndChildAccountHelper; |
13 import org.chromium.chrome.browser.signin.AccountManagementFragment; | 13 import org.chromium.chrome.browser.signin.AccountManagementFragment; |
14 import org.chromium.chrome.browser.signin.SigninManager; | 14 import org.chromium.chrome.browser.signin.SigninManager; |
15 import org.chromium.chrome.browser.util.FeatureUtilities; | 15 import org.chromium.chrome.browser.util.FeatureUtilities; |
16 import org.chromium.sync.signin.AccountManagerHelper; | 16 import org.chromium.components.sync.signin.AccountManagerHelper; |
17 import org.chromium.sync.signin.ChromeSigninController; | 17 import org.chromium.components.sync.signin.ChromeSigninController; |
18 | 18 |
19 /** | 19 /** |
20 * A helper to perform all necessary steps for forced sign in. | 20 * A helper to perform all necessary steps for forced sign in. |
21 * The helper performs: | 21 * The helper performs: |
22 * - necessary Android EDU and child account checks; | 22 * - necessary Android EDU and child account checks; |
23 * - automatic non-interactive forced sign in for Android EDU and child accounts
; and | 23 * - automatic non-interactive forced sign in for Android EDU and child accounts
; and |
24 * The helper calls the observer's onSignInComplete() if | 24 * The helper calls the observer's onSignInComplete() if |
25 * - nothing needs to be done, or when | 25 * - nothing needs to be done, or when |
26 * - the sign in is complete. | 26 * - the sign in is complete. |
27 * | 27 * |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 appContext, false); | 84 appContext, false); |
85 } | 85 } |
86 | 86 |
87 @Override | 87 @Override |
88 public void onSignInAborted() {} | 88 public void onSignInAborted() {} |
89 }); | 89 }); |
90 } | 90 } |
91 }); | 91 }); |
92 } | 92 } |
93 } | 93 } |
OLD | NEW |