This source file includes following definitions.
- getOAuth2AccessToken
- invalidateOAuth2AuthToken
- getOAuth2AccessTokenWithTimeout
package org.chromium.chrome.browser.signin;
import android.accounts.Account;
import android.app.Activity;
import android.content.Context;
import org.chromium.sync.signin.AccountManagerHelper;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
public final class AndroidProfileOAuth2TokenServiceHelper {
private AndroidProfileOAuth2TokenServiceHelper() {}
@Deprecated
public static void getOAuth2AccessToken(Context context, @Nullable Activity activity,
Account account, String scope, AccountManagerHelper.GetAuthTokenCallback callback) {
OAuth2TokenService.getOAuth2AccessToken(context, activity, account, scope, callback);
}
@Deprecated
public static void invalidateOAuth2AuthToken(Context context, String accessToken) {
OAuth2TokenService.invalidateOAuth2AuthToken(context, accessToken);
}
@Deprecated
public static String getOAuth2AccessTokenWithTimeout(Context context,
@Nullable Activity activity, Account account, String scope,
long timeout, TimeUnit unit) {
return OAuth2TokenService.getOAuth2AccessTokenWithTimeout(
context, activity, account, scope, timeout, unit);
}
}