| 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.child_accounts; | 5 package org.chromium.chrome.browser.childaccounts; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.accounts.AccountManager; | 8 import android.accounts.AccountManager; |
| 9 import android.accounts.AccountManagerCallback; | 9 import android.accounts.AccountManagerCallback; |
| 10 import android.accounts.AccountManagerFuture; | 10 import android.accounts.AccountManagerFuture; |
| 11 import android.accounts.AuthenticatorException; | 11 import android.accounts.AuthenticatorException; |
| 12 import android.accounts.OnAccountsUpdateListener; | 12 import android.accounts.OnAccountsUpdateListener; |
| 13 import android.accounts.OperationCanceledException; | 13 import android.accounts.OperationCanceledException; |
| 14 import android.content.Context; | 14 import android.content.Context; |
| 15 import android.os.AsyncTask; | 15 import android.os.AsyncTask; |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 private static void onInvalidationReceived() { | 352 private static void onInvalidationReceived() { |
| 353 assert ThreadUtils.runningOnUiThread(); | 353 assert ThreadUtils.runningOnUiThread(); |
| 354 if (sChildAccountService == null) return; | 354 if (sChildAccountService == null) return; |
| 355 sChildAccountService.recheckChildAccountStatus(); | 355 sChildAccountService.recheckChildAccountStatus(); |
| 356 } | 356 } |
| 357 | 357 |
| 358 private native boolean nativeIsChildAccountDetectionEnabled(); | 358 private native boolean nativeIsChildAccountDetectionEnabled(); |
| 359 | 359 |
| 360 private native void nativeSetIsChildAccount(boolean isChild); | 360 private native void nativeSetIsChildAccount(boolean isChild); |
| 361 } | 361 } |
| OLD | NEW |