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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_context.h

Issue 2887093003: arc: Implement retry logic for transient errors (Closed)
Patch Set: Created 3 years, 7 months 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/chromeos/arc/arc_auth_context.h
diff --git a/chrome/browser/chromeos/arc/arc_auth_context.h b/chrome/browser/chromeos/arc/arc_auth_context.h
index c0aee9cedc78a9d7766de409d19575c78891eeba..9d5ffe971f018ed576902addc940ec109543d315 100644
--- a/chrome/browser/chromeos/arc/arc_auth_context.h
+++ b/chrome/browser/chromeos/arc/arc_auth_context.h
@@ -65,6 +65,7 @@ class ArcAuthContext : public UbertokenConsumer,
void StartFetchers();
void ResetFetchers();
+ void OnFetchersError(const GoogleServiceAuthError& error);
Luis Héctor Chávez 2017/05/17 21:29:24 nit: OnFetcherError
khmel 2017/05/17 21:37:20 Done.
// Unowned pointer.
ProfileOAuth2TokenService* token_service_;
@@ -78,7 +79,12 @@ class ArcAuthContext : public UbertokenConsumer,
PrepareCallback callback_;
bool context_prepared_ = false;
+ // Contains number of retry attempts to prepare context. 0 means no retry
+ // has occurred.
+ int retry_attempt_count_ = 0;
+
base::OneShotTimer refresh_token_timeout_;
+ base::OneShotTimer retry_timeout_;
std::unique_ptr<GaiaAuthFetcher> merger_fetcher_;
std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_context.cc » ('j') | chrome/browser/chromeos/arc/arc_auth_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698