| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.childaccounts; | 5 package org.chromium.chrome.browser.childaccounts; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.accounts.AccountManagerCallback; | 8 import android.accounts.AccountManagerCallback; |
| 9 import android.accounts.AccountManagerFuture; | 9 import android.accounts.AccountManagerFuture; |
| 10 import android.accounts.AuthenticatorException; | 10 import android.accounts.AuthenticatorException; |
| 11 import android.accounts.OperationCanceledException; | 11 import android.accounts.OperationCanceledException; |
| 12 import android.content.Context; | 12 import android.content.Context; |
| 13 import android.content.Intent; | 13 import android.content.Intent; |
| 14 | 14 |
| 15 import org.chromium.base.CalledByNative; | |
| 16 import org.chromium.base.CommandLine; | 15 import org.chromium.base.CommandLine; |
| 17 import org.chromium.base.Log; | 16 import org.chromium.base.Log; |
| 18 import org.chromium.base.ThreadUtils; | 17 import org.chromium.base.ThreadUtils; |
| 19 import org.chromium.base.TraceEvent; | 18 import org.chromium.base.TraceEvent; |
| 20 import org.chromium.base.VisibleForTesting; | 19 import org.chromium.base.VisibleForTesting; |
| 20 import org.chromium.base.annotations.CalledByNative; |
| 21 import org.chromium.chrome.browser.ChromeSwitches; | 21 import org.chromium.chrome.browser.ChromeSwitches; |
| 22 import org.chromium.chrome.browser.services.AccountsChangedReceiver; | 22 import org.chromium.chrome.browser.services.AccountsChangedReceiver; |
| 23 import org.chromium.chrome.browser.signin.SigninManager; | 23 import org.chromium.chrome.browser.signin.SigninManager; |
| 24 import org.chromium.sync.signin.AccountManagerHelper; | 24 import org.chromium.sync.signin.AccountManagerHelper; |
| 25 import org.chromium.sync.signin.ChromeSigninController; | 25 import org.chromium.sync.signin.ChromeSigninController; |
| 26 | 26 |
| 27 import java.io.IOException; | 27 import java.io.IOException; |
| 28 import java.util.ArrayList; | 28 import java.util.ArrayList; |
| 29 import java.util.List; | 29 import java.util.List; |
| 30 import java.util.Timer; | 30 import java.util.Timer; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 /** | 335 /** |
| 336 * Returns the previously determined value of whether there is a child accou
nt on the device. | 336 * Returns the previously determined value of whether there is a child accou
nt on the device. |
| 337 * Can be overridden by subclasses to avoid native calls in testing. | 337 * Can be overridden by subclasses to avoid native calls in testing. |
| 338 * | 338 * |
| 339 * @return The previously determined value of whether there is a child accou
nt on the device. | 339 * @return The previously determined value of whether there is a child accou
nt on the device. |
| 340 */ | 340 */ |
| 341 protected native boolean nativeGetIsChildAccount(); | 341 protected native boolean nativeGetIsChildAccount(); |
| 342 | 342 |
| 343 private native void nativeSetIsChildAccount(boolean isChild); | 343 private native void nativeSetIsChildAccount(boolean isChild); |
| 344 } | 344 } |
| OLD | NEW |