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

Issue 2650653007: cros: Fix multiple LoadCredentials on network change (Closed)

Created:
3 years, 11 months ago by xiyuan
Modified:
3 years, 11 months ago
Reviewers:
jdufault, Daniel Erat
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, Daniel Erat
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Fix multiple LoadCredentials on network change TokenService::LoadCredentials does not handle multiple concurrent load requests. However, OAuth2LoginManager::ContinueSessionRestore calls it when there is a network change and could end up having multiple load requests in fly. This would cause the token of the primary account being wrongly revoked. Adding a bool flag in OAuth2LoginManager to prevent overlapping LoadCredentials calls. BUG=682695 Review-Url: https://codereview.chromium.org/2650653007 Cr-Commit-Position: refs/heads/master@{#446180} Committed: https://chromium.googlesource.com/chromium/src/+/29db500ff5473c212ebe3f1cebbc00ec87a023b8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M chrome/browser/chromeos/login/signin/oauth2_login_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/signin/oauth2_login_manager.cc View 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
xiyuan
jdufault@, could you help to review this? Thanks.
3 years, 11 months ago (2017-01-26 00:05:35 UTC) #2
jdufault
lgtm, but should ProfileOAuth2TokenService be verifying that there's not already an inflight network call instead ...
3 years, 11 months ago (2017-01-26 00:25:55 UTC) #5
xiyuan
On 2017/01/26 00:25:55, jdufault wrote: > lgtm, but should ProfileOAuth2TokenService be verifying that there's not ...
3 years, 11 months ago (2017-01-26 00:44:48 UTC) #8
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/2650653007/1
3 years, 11 months ago (2017-01-26 00:46:38 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/29db500ff5473c212ebe3f1cebbc00ec87a023b8
3 years, 11 months ago (2017-01-26 00:56:31 UTC) #13
Daniel Erat
drive-by: is there any way to add a test for this to oauth_browsertest.cc? :-)
3 years, 11 months ago (2017-01-26 01:18:33 UTC) #15
xiyuan
3 years, 11 months ago (2017-01-26 16:26:40 UTC) #16
Message was sent while issue was closed.
On 2017/01/26 01:18:33, Daniel Erat wrote:
> drive-by: is there any way to add a test for this to oauth_browsertest.cc? :-)

Let me see what I can do there.

Powered by Google App Engine
This is Rietveld 408576698