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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.h

Issue 2239653002: Add robustness against OAuth2 Token requests getting canceled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: components/ntp_snippets/ntp_snippets_fetcher.h
diff --git a/components/ntp_snippets/ntp_snippets_fetcher.h b/components/ntp_snippets/ntp_snippets_fetcher.h
index 11a4e40f568433f00c4529dd1e40d0dfb785f806..e46e64df8f79a8bdfe8a14eaf32317a5c3e8ebfb 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -230,6 +230,9 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
// Request throttler for limiting requests.
RequestThrottler request_throttler_;
+ // When a token request get's cancelled - we want to retry for _one_ time.
Marc Treib 2016/08/11 09:35:17 nit: gets, not apostrophe. Also comma instead of d
jkrcal 2016/08/11 10:03:56 Done.
+ bool oauth_token_retried_;
+
base::WeakPtrFactory<NTPSnippetsFetcher> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(NTPSnippetsFetcher);
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_fetcher.cc » ('j') | components/ntp_snippets/ntp_snippets_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698