Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1006)

Unified Diff: chrome/browser/signin/android_profile_oauth2_token_service.h

Issue 63253003: Fix issues with token refresh in AccountReconcilor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/android_profile_oauth2_token_service.h
diff --git a/chrome/browser/signin/android_profile_oauth2_token_service.h b/chrome/browser/signin/android_profile_oauth2_token_service.h
index 1d6c054e8e1cc5b82e0c9006b8bede8f082413dd..70e3bfb680552739f3d5c0c1eb6dc4f3efbb461c 100644
--- a/chrome/browser/signin/android_profile_oauth2_token_service.h
+++ b/chrome/browser/signin/android_profile_oauth2_token_service.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SIGNIN_ANDROID_PROFILE_OAUTH2_TOKEN_SERVICE_H_
#include <jni.h>
+#include <deque>
#include <string>
#include "base/android/jni_helper.h"
@@ -65,6 +66,12 @@ class AndroidProfileOAuth2TokenService : public ProfileOAuth2TokenService {
// refresh tokens have now been loaded.
virtual void FireRefreshTokensLoadedFromJava(JNIEnv* env, jobject obj);
+ // Called to notify observers when a refresh token is available.
+ virtual void FireRefreshTokenAvailable(
+ const std::string& account_id) OVERRIDE;
+ virtual void FireRefreshTokenAvailable(
+ const std::deque<std::string>& account_ids) OVERRIDE;
+
protected:
friend class ProfileOAuth2TokenServiceFactory;
AndroidProfileOAuth2TokenService();
@@ -86,9 +93,6 @@ class AndroidProfileOAuth2TokenService : public ProfileOAuth2TokenService {
const ScopeSet& scopes,
const std::string& access_token) OVERRIDE;
- // Called to notify observers when a refresh token is available.
- virtual void FireRefreshTokenAvailable(
- const std::string& account_id) OVERRIDE;
// Called to notify observers when a refresh token has been revoked.
virtual void FireRefreshTokenRevoked(const std::string& account_id) OVERRIDE;
// Called to notify observers when refresh tokans have been loaded.

Powered by Google App Engine
This is Rietveld 408576698