org.chromium.chrome.browser.signin.AccountTrackerService Java Examples
The following examples show how to use
org.chromium.chrome.browser.signin.AccountTrackerService.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProfileDownloader.java From delion with Apache License 2.0 | 5 votes |
@SuppressFBWarnings("LI_LAZY_INIT_UPDATE_STATIC") public static PendingProfileDownloads get(Context context) { ThreadUtils.assertOnUiThread(); if (sPendingProfileDownloads == null) { sPendingProfileDownloads = new PendingProfileDownloads(); AccountTrackerService.get(context).addSystemAccountsSeededListener( sPendingProfileDownloads); } return sPendingProfileDownloads; }
Example #2
Source File: ProfileDownloader.java From delion with Apache License 2.0 | 5 votes |
/** * Starts fetching the account information for a given account. * @param context context associated with the request * @param profile Profile associated with the request * @param accountId Account name to fetch the information for * @param imageSidePixels Request image side (in pixels) */ public static void startFetchingAccountInfoFor(Context context, Profile profile, String accountId, int imageSidePixels, boolean isPreSignin) { ThreadUtils.assertOnUiThread(); if (!AccountTrackerService.get(context).checkAndSeedSystemAccounts()) { PendingProfileDownloads.get(context).pendProfileDownload( profile, accountId, imageSidePixels); return; } nativeStartFetchingAccountInfoFor(profile, accountId, imageSidePixels, isPreSignin); }
Example #3
Source File: AccountsChangedReceiver.java From delion with Apache License 2.0 | 5 votes |
private void continueHandleAccountChangeIfNeeded(final Context context, final Intent intent) { if (!AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION.equals(intent.getAction())) return; AccountTrackerService.get(context).invalidateAccountSeedStatus( false /* don't refresh right now */); boolean isChromeVisible = ApplicationStatus.hasVisibleActivities(); if (isChromeVisible) { startBrowserIfNeededAndValidateAccounts(context); } else { // Notify SigninHelper of changed accounts (via shared prefs). SigninHelper.markAccountsChangedPref(context); } notifyAccountsChangedOnBrowserStartup(context, intent); }
Example #4
Source File: ProfileDownloader.java From AndroidChromium with Apache License 2.0 | 5 votes |
@SuppressFBWarnings("LI_LAZY_INIT_UPDATE_STATIC") public static PendingProfileDownloads get(Context context) { ThreadUtils.assertOnUiThread(); if (sPendingProfileDownloads == null) { sPendingProfileDownloads = new PendingProfileDownloads(); AccountTrackerService.get(context).addSystemAccountsSeededListener( sPendingProfileDownloads); } return sPendingProfileDownloads; }
Example #5
Source File: ProfileDownloader.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Starts fetching the account information for a given account. * @param context context associated with the request * @param profile Profile associated with the request * @param accountId Account name to fetch the information for * @param imageSidePixels Request image side (in pixels) */ public static void startFetchingAccountInfoFor(Context context, Profile profile, String accountId, int imageSidePixels, boolean isPreSignin) { ThreadUtils.assertOnUiThread(); if (!AccountTrackerService.get(context).checkAndSeedSystemAccounts()) { PendingProfileDownloads.get(context).pendProfileDownload( profile, accountId, imageSidePixels); return; } nativeStartFetchingAccountInfoFor(profile, accountId, imageSidePixels, isPreSignin); }
Example #6
Source File: AccountsChangedReceiver.java From AndroidChromium with Apache License 2.0 | 5 votes |
private void continueHandleAccountChangeIfNeeded(final Context context, final Intent intent) { if (!AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION.equals(intent.getAction())) return; AccountTrackerService.get(context).invalidateAccountSeedStatus( false /* don't refresh right now */); boolean isChromeVisible = ApplicationStatus.hasVisibleActivities(); if (isChromeVisible) { startBrowserIfNeededAndValidateAccounts(context); } else { // Notify SigninHelper of changed accounts (via shared prefs). SigninHelper.markAccountsChangedPref(context); } notifyAccountsChangedOnBrowserStartup(context, intent); }
Example #7
Source File: ProfileDownloader.java From 365browser with Apache License 2.0 | 5 votes |
@SuppressFBWarnings("LI_LAZY_INIT_UPDATE_STATIC") public static PendingProfileDownloads get(Context context) { ThreadUtils.assertOnUiThread(); if (sPendingProfileDownloads == null) { sPendingProfileDownloads = new PendingProfileDownloads(); AccountTrackerService.get().addSystemAccountsSeededListener( sPendingProfileDownloads); } return sPendingProfileDownloads; }
Example #8
Source File: ProfileDownloader.java From 365browser with Apache License 2.0 | 5 votes |
/** * Starts fetching the account information for a given account. * @param context context associated with the request * @param profile Profile associated with the request * @param accountId Account name to fetch the information for * @param imageSidePixels Request image side (in pixels) */ public static void startFetchingAccountInfoFor(Context context, Profile profile, String accountId, int imageSidePixels, boolean isPreSignin) { ThreadUtils.assertOnUiThread(); if (!AccountTrackerService.get().checkAndSeedSystemAccounts()) { PendingProfileDownloads.get(context).pendProfileDownload( profile, accountId, imageSidePixels); return; } nativeStartFetchingAccountInfoFor(profile, accountId, imageSidePixels, isPreSignin); }
Example #9
Source File: AccountsChangedReceiver.java From 365browser with Apache License 2.0 | 5 votes |
private void continueHandleAccountChangeIfNeeded(final Context context) { AccountTrackerService.get().invalidateAccountSeedStatus( false /* don't refresh right now */); boolean isChromeVisible = ApplicationStatus.hasVisibleActivities(); if (isChromeVisible) { startBrowserIfNeededAndValidateAccounts(context); } else { // Notify SigninHelper of changed accounts (via shared prefs). SigninHelper.markAccountsChangedPref(context); } notifyAccountsChangedOnBrowserStartup(context); }