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

Issue 2490093002: Migrate opt-in auth flow to re-auth flow. (Closed)

Created:
4 years, 1 month ago by hidehiko
Modified:
4 years, 1 month ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, khmel+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, khmel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate opt-in auth flow to re-auth flow. This CL migrates pre-fetch auth-token flow into re-auth flow. So, internally, AuthHost implementation is split from other arc container/enable statement management. BUG=657687 BUG=b/31079732 TEST=Trybots. Ran on test device. Committed: https://crrev.com/41e94820ce6ca738bdb2d319740ae79d875380e2 Cr-Commit-Position: refs/heads/master@{#432389}

Patch Set 1 #

Total comments: 16

Patch Set 2 : rebase #

Patch Set 3 : Address comments #

Patch Set 4 : Fix retry. #

Total comments: 5

Patch Set 5 : Rebase #

Patch Set 6 : Workaround for restart case. #

Patch Set 7 : Address comments. #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -108 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 13 chunks +52 lines, -83 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 7 chunks +7 lines, -19 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
hidehiko
PTAL. Luis, as we chatted offline, let me pile the CLs. https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (left): ...
4 years, 1 month ago (2016-11-10 06:49:28 UTC) #2
Luis Héctor Chávez
first round https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (left): https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc#oldcode344 chrome/browser/chromeos/arc/arc_auth_service.cc:344: callback.Run(GetAndResetAuthCode()); On 2016/11/10 06:49:28, hidehiko wrote: > ...
4 years, 1 month ago (2016-11-10 23:58:21 UTC) #3
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (left): https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc#oldcode344 chrome/browser/chromeos/arc/arc_auth_service.cc:344: callback.Run(GetAndResetAuthCode()); On 2016/11/10 23:58:20, ...
4 years, 1 month ago (2016-11-14 11:29:31 UTC) #4
hidehiko
https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2490093002/diff/1/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode1040 chrome/browser/chromeos/arc/arc_auth_service.cc:1040: if (state_ != State::STOPPED) { On 2016/11/14 11:29:31, hidehiko ...
4 years, 1 month ago (2016-11-14 16:57:00 UTC) #5
Luis Héctor Chávez
other than the two nits and the shutdown race investigation, this l-g-t-m. https://codereview.chromium.org/2490093002/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc ...
4 years, 1 month ago (2016-11-14 17:21:36 UTC) #6
hidehiko
Turned out that the timing issue is actually caused by the combination of SessionManagerClient, ArcBridgeService(Impl), ...
4 years, 1 month ago (2016-11-15 11:26:47 UTC) #11
Luis Héctor Chávez
lgtm
4 years, 1 month ago (2016-11-15 18:06:56 UTC) #12
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/2490093002/120001
4 years, 1 month ago (2016-11-16 01:12:04 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/305144)
4 years, 1 month ago (2016-11-16 01:24:32 UTC) #16
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/2490093002/140001
4 years, 1 month ago (2016-11-16 03:51:23 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-16 06:25:40 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 06:29:49 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/41e94820ce6ca738bdb2d319740ae79d875380e2
Cr-Commit-Position: refs/heads/master@{#432389}

Powered by Google App Engine
This is Rietveld 408576698