diff options
author | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 00:49:12 +0000 |
---|---|---|
committer | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 00:49:12 +0000 |
commit | e5a8d43d7722b0b467c9eb54ae379dafb54b8f26 (patch) | |
tree | 578faa089f5c3c0f50e7e8a121712fd0640ec1d1 /sync/android | |
parent | d93d25cf77b0ad8315c6a66bbca06cfd93d19505 (diff) | |
download | chromium_src-e5a8d43d7722b0b467c9eb54ae379dafb54b8f26.zip chromium_src-e5a8d43d7722b0b467c9eb54ae379dafb54b8f26.tar.gz chromium_src-e5a8d43d7722b0b467c9eb54ae379dafb54b8f26.tar.bz2 |
Get OAuth2TokenService working on Android.
In order to get OAuth tokens on Android, we have to call out to Java. This CL
makes it possible. It's not the ideal solution but works for now.
BUG= 222271
Review URL: https://codereview.chromium.org/12880014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/android')
-rw-r--r-- | sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java b/sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java index 882f90d..7952f4e 100644 --- a/sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java +++ b/sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java @@ -306,4 +306,11 @@ public class AccountManagerHelper { getAuthTokenAsynchronously( null, account, authTokenType, callback, numTries, errorEncountered, null); } + + /** + * Removes an auth token from the AccountManager's cache. + */ + public void invalidateAuthToken(String accountType, String authToken) { + mAccountManager.invalidateAuthToken(accountType, authToken); + } } |