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

Issue 2323043003: arc: Add a global 5 minute timeout for ARC opt-in (Closed)

Created:
4 years, 3 months ago by Luis Héctor Chávez
Modified:
4 years, 3 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Add a global 5 minute timeout for ARC opt-in This should be a safety net for *all* boot failures we have (or might have). This change replaces the flag |waiting_for_reply_| with a base::OneShotTimeout that will log the situation and report a timeout error to the user. BUG=645233 TEST=Intentionally make ARC not send the reply, see the UI, ARC is still running. Committed: https://crrev.com/3d3317a6e0dde5de7effb4406c4b60bb7aa91bb5 Cr-Commit-Position: refs/heads/master@{#417770}

Patch Set 1 #

Patch Set 2 : Fixed a dumb build failure #

Patch Set 3 : Add logging and also remove data on timeout. #

Total comments: 4

Patch Set 4 : Added a new enum value for timeout #

Total comments: 4

Patch Set 5 : Removed obsolete comment, useless function. Added histogram string. #

Total comments: 4

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -9 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 8 chunks +25 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_optin_uma.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (26 generated)
Luis Héctor Chávez
PTAL This also manages to fix the issue where Android is fully set up but ...
4 years, 3 months ago (2016-09-08 23:13:33 UTC) #12
khmel
https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode696 chrome/browser/chromeos/arc/arc_auth_service.cc:696: arc_sign_in_timer_.Start(FROM_HERE, kArcSignInTimeout, This happens only for initial sign-in. I ...
4 years, 3 months ago (2016-09-08 23:18:07 UTC) #13
Luis Héctor Chávez
https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode696 chrome/browser/chromeos/arc/arc_auth_service.cc:696: arc_sign_in_timer_.Start(FROM_HERE, kArcSignInTimeout, On 2016/09/08 23:18:07, khmel wrote: > This ...
4 years, 3 months ago (2016-09-08 23:26:50 UTC) #16
khmel
On 2016/09/08 23:26:50, Luis Héctor Chávez wrote: > https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc > File chrome/browser/chromeos/arc/arc_auth_service.cc (right): > > ...
4 years, 3 months ago (2016-09-08 23:29:46 UTC) #17
Luis Héctor Chávez
On 2016/09/08 23:29:46, khmel wrote: > On 2016/09/08 23:26:50, Luis Héctor Chávez wrote: > > ...
4 years, 3 months ago (2016-09-09 00:30:32 UTC) #18
hidehiko
Drive-by. https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode704 chrome/browser/chromeos/arc/arc_auth_service.cc:704: OnSignInFailedInternal(ProvisioningResult::MOJO_CALL_TIMEOUT); Could you define another enum for timeout? ...
4 years, 3 months ago (2016-09-09 01:15:13 UTC) #20
Luis Héctor Chávez
https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode704 chrome/browser/chromeos/arc/arc_auth_service.cc:704: OnSignInFailedInternal(ProvisioningResult::MOJO_CALL_TIMEOUT); On 2016/09/09 01:15:13, hidehiko wrote: > Could you ...
4 years, 3 months ago (2016-09-09 02:26:40 UTC) #22
hidehiko
https://codereview.chromium.org/2323043003/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode239 chrome/browser/chromeos/arc/arc_auth_service.cc:239: arc_sign_in_timer_.Stop(); nit/optional: this looks redundant, because this is the ...
4 years, 3 months ago (2016-09-09 02:31:48 UTC) #24
Luis Héctor Chávez
holte PTAL tools/metrics/histograms/histograms.xml https://codereview.chromium.org/2323043003/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode239 chrome/browser/chromeos/arc/arc_auth_service.cc:239: arc_sign_in_timer_.Stop(); On 2016/09/09 02:31:48, hidehiko wrote: ...
4 years, 3 months ago (2016-09-09 03:16:59 UTC) #28
Yusuke Sato
lgtm w/ comments: https://codereview.chromium.org/2323043003/diff/80001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/80001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode699 chrome/browser/chromeos/arc/arc_auth_service.cc:699: VLOG(1) << "Timed out waiting for ...
4 years, 3 months ago (2016-09-09 03:28:57 UTC) #29
Luis Héctor Chávez
https://codereview.chromium.org/2323043003/diff/80001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2323043003/diff/80001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode699 chrome/browser/chromeos/arc/arc_auth_service.cc:699: VLOG(1) << "Timed out waiting for first sign in."; ...
4 years, 3 months ago (2016-09-09 03:37:24 UTC) #30
hidehiko
lgtm.
4 years, 3 months ago (2016-09-09 04:14:43 UTC) #31
Steven Holte
histograms lgtm
4 years, 3 months ago (2016-09-09 23:46:41 UTC) #36
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/2323043003/100001
4 years, 3 months ago (2016-09-09 23:47:38 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-09 23:52:03 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 23:54:28 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3d3317a6e0dde5de7effb4406c4b60bb7aa91bb5
Cr-Commit-Position: refs/heads/master@{#417770}

Powered by Google App Engine
This is Rietveld 408576698