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

Issue 2173103002: Recategorize ARC auth sign in errors. (Closed)

Created:
4 years, 5 months ago by hidehiko
Modified:
4 years, 4 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, hidehiko+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, lhchavez+watch_chromium.org, oshima+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, davemoore+watch_chromium.org, qsr+mojo_chromium.org, Junichi Uekawa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Recategorize ARC auth sign in errors. Currently, many errors are categorized to UNKNOWN_ERROR. With this CL and client modification, we can assign more precise error code for each case. BUG=630624 TEST=Trybot. Committed: https://crrev.com/01cc9d9f7b222240d178b6820c6dc8ba5c40070c Cr-Commit-Position: refs/heads/master@{#408602}

Patch Set 1 #

Patch Set 2 : Fix test. #

Patch Set 3 : Update error code. #

Total comments: 30

Patch Set 4 : rebase #

Patch Set 5 : Address comments. #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : Address comment #

Total comments: 2

Patch Set 8 : Address comments #

Total comments: 7

Patch Set 9 : Address comments. #

Total comments: 2

Patch Set 10 : Address comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -43 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 8 9 4 chunks +58 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_optin_uma.h View 1 2 3 4 5 6 1 chunk +48 lines, -15 lines 1 comment Download
M components/arc/common/auth.mojom View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -5 lines 0 comments Download

Messages

Total messages: 60 (35 generated)
hidehiko
Victor, Elijah, PTAL.
4 years, 5 months ago (2016-07-25 10:22:37 UTC) #15
victorhsieh
https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode315 chrome/browser/chromeos/arc/arc_auth_service.cc:315: UpdateOptInCancelUMA(OptInCancelReason::CLOUD_PROVISION_FLOW_FAIL); Why it's always CLOUD_PROVISION_FLOW_FAIL now? https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode323 chrome/browser/chromeos/arc/arc_auth_service.cc:323: case ...
4 years, 5 months ago (2016-07-25 20:30:42 UTC) #16
Luis Héctor Chávez
drive-by https://codereview.chromium.org/2173103002/diff/40001/components/arc/common/auth.mojom File components/arc/common/auth.mojom (right): https://codereview.chromium.org/2173103002/diff/40001/components/arc/common/auth.mojom#newcode9 components/arc/common/auth.mojom:9: // Negative values are reserved for internal use. ...
4 years, 5 months ago (2016-07-25 21:04:47 UTC) #18
Junichi Uekawa
https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode124 chrome/browser/chromeos/arc/arc_auth_service.cc:124: return ProvisioningResult::CLOUD_PROVISION_FLOW_TIMEOUT; my eyes hurt trying to compare and ...
4 years, 5 months ago (2016-07-26 06:22:27 UTC) #20
hidehiko
Thank you for review. Because this is cherry-pick target, I'd like to just focus on ...
4 years, 4 months ago (2016-07-26 13:02:58 UTC) #23
victorhsieh
https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h File chrome/browser/chromeos/arc/arc_optin_uma.h (right): https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h#newcode81 chrome/browser/chromeos/arc/arc_optin_uma.h:81: CLOUD_PROVISION_FLOW_TIMEOUT = 15, On 2016/07/26 13:02:58, hidehiko wrote: > ...
4 years, 4 months ago (2016-07-26 18:22:11 UTC) #26
hidehiko
https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h File chrome/browser/chromeos/arc/arc_optin_uma.h (right): https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h#newcode81 chrome/browser/chromeos/arc/arc_optin_uma.h:81: CLOUD_PROVISION_FLOW_TIMEOUT = 15, On 2016/07/26 18:22:11, victorhsieh wrote: > ...
4 years, 4 months ago (2016-07-26 18:50:49 UTC) #27
victorhsieh
https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h File chrome/browser/chromeos/arc/arc_optin_uma.h (right): https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h#newcode81 chrome/browser/chromeos/arc/arc_optin_uma.h:81: CLOUD_PROVISION_FLOW_TIMEOUT = 15, On 2016/07/26 18:50:48, hidehiko wrote: > ...
4 years, 4 months ago (2016-07-26 19:52:42 UTC) #28
Junichi Uekawa
https://codereview.chromium.org/2173103002/diff/40001/components/arc/common/auth.mojom File components/arc/common/auth.mojom (right): https://codereview.chromium.org/2173103002/diff/40001/components/arc/common/auth.mojom#newcode19 components/arc/common/auth.mojom:19: // GMS errors. On 2016/07/26 19:52:42, victorhsieh wrote: > ...
4 years, 4 months ago (2016-07-27 08:52:20 UTC) #29
hidehiko
Thank you for review. PTAL. Also, could you take a look at ARC side CL, ...
4 years, 4 months ago (2016-07-27 17:36:12 UTC) #35
victorhsieh
lgtm Thanks for the patient! https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h File chrome/browser/chromeos/arc/arc_optin_uma.h (right): https://codereview.chromium.org/2173103002/diff/40001/chrome/browser/chromeos/arc/arc_optin_uma.h#newcode81 chrome/browser/chromeos/arc/arc_optin_uma.h:81: CLOUD_PROVISION_FLOW_TIMEOUT = 15, On ...
4 years, 4 months ago (2016-07-27 18:03:06 UTC) #36
victorhsieh
https://codereview.chromium.org/2173103002/diff/40001/components/arc/common/auth.mojom File components/arc/common/auth.mojom (right): https://codereview.chromium.org/2173103002/diff/40001/components/arc/common/auth.mojom#newcode19 components/arc/common/auth.mojom:19: // GMS errors. > I am not too confident ...
4 years, 4 months ago (2016-07-27 18:20:00 UTC) #37
Junichi Uekawa
lgtm
4 years, 4 months ago (2016-07-28 05:22:37 UTC) #38
hidehiko
+R=rickyz@. Thank you all for your review. Ricky, could you review .mojom file as an ...
4 years, 4 months ago (2016-07-28 11:37:41 UTC) #40
Luis Héctor Chávez
One important thing I missed the first round. https://codereview.chromium.org/2173103002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2173103002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode116 chrome/browser/chromeos/arc/arc_auth_service.cc:116: default: ...
4 years, 4 months ago (2016-07-28 17:16:40 UTC) #41
hidehiko
Thank you for comment, Luis. # Unfortunately, I do not have access to my dev ...
4 years, 4 months ago (2016-07-28 17:41:37 UTC) #42
Luis Héctor Chávez
https://codereview.chromium.org/2173103002/diff/160001/components/arc/common/auth.mojom File components/arc/common/auth.mojom (right): https://codereview.chromium.org/2173103002/diff/160001/components/arc/common/auth.mojom#newcode8 components/arc/common/auth.mojom:8: enum ArcSignInFailureReason { On 2016/07/28 17:41:37, hidehiko wrote: > ...
4 years, 4 months ago (2016-07-28 17:45:41 UTC) #43
rickyz (no longer on Chrome)
mojom lgtm
4 years, 4 months ago (2016-07-28 20:15:05 UTC) #44
hidehiko
PTAL. https://codereview.chromium.org/2173103002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2173103002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode116 chrome/browser/chromeos/arc/arc_auth_service.cc:116: default: On 2016/07/28 17:41:37, hidehiko wrote: > On ...
4 years, 4 months ago (2016-07-29 04:25:42 UTC) #47
Luis Héctor Chávez
lgtm with a nit https://codereview.chromium.org/2173103002/diff/180001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2173103002/diff/180001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode119 chrome/browser/chromeos/arc/arc_auth_service.cc:119: LOG(ERROR) << "unknown reason: " ...
4 years, 4 months ago (2016-07-29 04:28:38 UTC) #48
hidehiko
Thank you for review. Submitting. https://codereview.chromium.org/2173103002/diff/180001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2173103002/diff/180001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode119 chrome/browser/chromeos/arc/arc_auth_service.cc:119: LOG(ERROR) << "unknown reason: ...
4 years, 4 months ago (2016-07-29 07:18:22 UTC) #51
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/2173103002/200001
4 years, 4 months ago (2016-07-29 07:18:40 UTC) #54
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 4 months ago (2016-07-29 08:01:20 UTC) #56
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/01cc9d9f7b222240d178b6820c6dc8ba5c40070c Cr-Commit-Position: refs/heads/master@{#408602}
4 years, 4 months ago (2016-07-29 08:04:25 UTC) #58
khmel
4 years, 4 months ago (2016-07-29 14:47:27 UTC) #60
Message was sent while issue was closed.
https://codereview.chromium.org/2173103002/diff/200001/chrome/browser/chromeo...
File chrome/browser/chromeos/arc/arc_optin_uma.h (left):

https://codereview.chromium.org/2173103002/diff/200001/chrome/browser/chromeo...
chrome/browser/chromeos/arc/arc_optin_uma.h:39: SUCCESS = 0,                   
// Provisioning was successful.
Would not we update tools/metrics/histograms/histograms.xml?

<enum name="ArcProvisioningResult" type="int">
  <summary>Defines Arc Provisioning success and failure reasons</summary>
  <int value="0" label="Success"/>
  <int value="1" label="Unclassified failure"/>
  <int value="2" label="Network failure"/>
  <int value="3" label="GMS Services are not available"/>
  <int value="4" label="Bad authentication returned by server"/>
  <int value="5" label="GMS Core is not available"/>
  <int value="6" label="Cloud provision flow failed"/>
</enum>

Powered by Google App Engine
This is Rietveld 408576698