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

Issue 2239653002: Add robustness against OAuth2 Token requests getting canceled. (Closed)

Created:
4 years, 4 months ago by jkrcal
Modified:
4 years, 4 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add robustness against OAuth2 Token requests getting canceled. OAuth2 token requests get canceled whenever new refresh tokens are loaded. On Android this happens soon after startup and (on slow devices) quite reliably cancels the requests for content suggestions. This CL adds one retry in case the token request gets canceled. BUG=632740 Committed: https://crrev.com/36f23cf9e0aae1b88b19afab849ac4a7c80d5e80 Cr-Commit-Position: refs/heads/master@{#411325}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Marc's comments #

Total comments: 2

Patch Set 3 : Marc's comments #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 5 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
jkrcal
Marc, PTAL!
4 years, 4 months ago (2016-08-11 09:18:46 UTC) #2
Marc Treib
We don't have any tests for authenticated fetching yet, right? We really should add some... ...
4 years, 4 months ago (2016-08-11 09:35:17 UTC) #4
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2239653002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (left): https://codereview.chromium.org/2239653002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#oldcode440 components/ntp_snippets/ntp_snippets_fetcher.cc:440: << " - fetching the snippets ...
4 years, 4 months ago (2016-08-11 10:03:56 UTC) #5
Marc Treib
lgtm https://codereview.chromium.org/2239653002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2239653002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode235 components/ntp_snippets/ntp_snippets_fetcher.cc:235: oauth_token_retried_ = false; On 2016/08/11 10:03:56, jkrcal wrote: ...
4 years, 4 months ago (2016-08-11 10:11:04 UTC) #6
jkrcal
Thanks, Marc! https://codereview.chromium.org/2239653002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/2239653002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode235 components/ntp_snippets/ntp_snippets_fetcher.cc:235: oauth_token_retried_ = false; On 2016/08/11 10:11:03, Marc ...
4 years, 4 months ago (2016-08-11 12:31:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2239653002/40001
4 years, 4 months ago (2016-08-11 14:32:18 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-11 14:35:41 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 14:36:57 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/36f23cf9e0aae1b88b19afab849ac4a7c80d5e80
Cr-Commit-Position: refs/heads/master@{#411325}

Powered by Google App Engine
This is Rietveld 408576698