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

Issue 1892873002: Add CheckAndroidManagement to ARC sign-in flow. (Closed)

Created:
4 years, 8 months ago by Polina Bondarenko
Modified:
4 years, 7 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@check_android_management
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CheckAndroidManagement to ARC sign-in flow. ARC is not available for Chrome unmanaged and Android managed accounts. Check whether account is managed by Android every time on ARC start. Always allow ARC for managed by Chrome policy and well-known consumer accounts. Uncheck ARC checkbox in case of any error. BUG=602612 TEST=manual Committed: https://crrev.com/b7ceb29f22004c344c982e48de1e436834b69274 Cr-Commit-Position: refs/heads/master@{#391482}

Patch Set 1 : #

Patch Set 2 : Put CheckAndroidManagement before LSO. #

Total comments: 24

Patch Set 3 : Fixed to pass unit tests. #

Patch Set 4 : Fixed comments. #

Patch Set 5 : Added browser test for ArcAuthService. #

Total comments: 42

Patch Set 6 : Fixed comments, rebase. #

Total comments: 8

Patch Set 7 : Moved access token to AndroidManagementClient. #

Patch Set 8 : scoped_ptr->unique_ptr in test. #

Total comments: 4

Patch Set 9 : Removed ptr_util.h from arc_auth_service.h #

Patch Set 10 : Added comment, Unretained(this) -> weak_ptr_factory_.GetWeakPtr() #

Patch Set 11 : Rebased. #

Patch Set 12 : Added OnShutdownBridge to observer. #

Total comments: 52

Patch Set 13 : Fixed bartfab's comments. #

Total comments: 2

Patch Set 14 : Fixed nits. #

Patch Set 15 : Added CheckAndroidManagement when OptIn is disabled. #

Total comments: 6

Patch Set 16 : Fixed comments. #

Patch Set 17 : Rebased. #

Patch Set 18 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -28 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 13 chunks +108 lines, -18 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +250 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_optin_uma.h View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M chrome/browser/policy/test/policy_testserver.py View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +24 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 65 (27 generated)
Polina Bondarenko
PTAL
4 years, 8 months ago (2016-04-15 14:33:18 UTC) #3
bartfab (slow)
Can we get an end-to-end test for this? https://codereview.chromium.org/1892873002/diff/60001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1892873002/diff/60001/chrome/app/chromeos_strings.grdp#newcode6586 chrome/app/chromeos_strings.grdp:6586: <message ...
4 years, 8 months ago (2016-04-18 15:06:15 UTC) #6
Polina Bondarenko
Hi Bartosz, Thanks for reviewing! I've fixed your comments and added browser test. PTAL. https://codereview.chromium.org/1892873002/diff/60001/chrome/app/chromeos_strings.grdp ...
4 years, 8 months ago (2016-04-20 13:37:45 UTC) #8
Polina Bondarenko
Hi Xiyuan, I've added Android management check to ARC opt-in flow. It is a dependent ...
4 years, 8 months ago (2016-04-20 13:46:47 UTC) #10
xiyuan
+khmel https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode342 chrome/browser/chromeos/arc/arc_auth_service.cc:342: auth_token_ = token; |token| is uber token, not ...
4 years, 8 months ago (2016-04-20 18:21:42 UTC) #12
khmel1
https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode298 chrome/browser/chromeos/arc/arc_auth_service.cc:298: android_management_client_.reset(); Probably ArcAuthService::ShutdownBridge is better place https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode380 chrome/browser/chromeos/arc/arc_auth_service.cc:380: enable_check_android_management_for_testing) ...
4 years, 8 months ago (2016-04-20 19:13:32 UTC) #14
Polina Bondarenko
Thanks for reviewing! Fixed comments and rebased. Sorry, sent it in one patch because of ...
4 years, 8 months ago (2016-04-25 19:59:50 UTC) #17
xiyuan
https://codereview.chromium.org/1892873002/diff/200001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/200001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode233 chrome/browser/chromeos/arc/arc_auth_service.cc:233: if (state_ == state && !enable_check_android_management_for_testing) Why we need ...
4 years, 8 months ago (2016-04-26 17:48:10 UTC) #18
Polina Bondarenko
I moved the access token fetch to AndroidManagementClient, see CL (https://codereview.chromium.org/1892093002/), removed running_loop_. Please take ...
4 years, 7 months ago (2016-04-27 15:19:57 UTC) #20
xiyuan
https://codereview.chromium.org/1892873002/diff/200001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/200001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode233 chrome/browser/chromeos/arc/arc_auth_service.cc:233: if (state_ == state && !enable_check_android_management_for_testing) On 2016/04/27 15:19:57, ...
4 years, 7 months ago (2016-04-27 16:00:57 UTC) #21
Polina Bondarenko
https://codereview.chromium.org/1892873002/diff/250001/chrome/browser/chromeos/arc/arc_auth_service.h File chrome/browser/chromeos/arc/arc_auth_service.h (right): https://codereview.chromium.org/1892873002/diff/250001/chrome/browser/chromeos/arc/arc_auth_service.h#newcode12 chrome/browser/chromeos/arc/arc_auth_service.h:12: #include "base/memory/ptr_util.h" On 2016/04/27 16:00:57, xiyuan wrote: > nit: ...
4 years, 7 months ago (2016-04-27 16:06:35 UTC) #22
khmel
https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode298 chrome/browser/chromeos/arc/arc_auth_service.cc:298: android_management_client_.reset(); On 2016/04/25 19:59:49, Polina Bondarenko wrote: > On ...
4 years, 7 months ago (2016-04-27 16:07:42 UTC) #23
Polina Bondarenko
https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode298 chrome/browser/chromeos/arc/arc_auth_service.cc:298: android_management_client_.reset(); On 2016/04/27 16:07:42, khmel wrote: > On 2016/04/25 ...
4 years, 7 months ago (2016-04-27 16:58:50 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892873002/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892873002/310001
4 years, 7 months ago (2016-04-29 12:43:50 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-29 13:55:41 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892873002/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892873002/330001
4 years, 7 months ago (2016-05-02 12:18:58 UTC) #30
Polina Bondarenko
Thanks a lot for your comments, sorry I've missed some, but I've already fixed them. ...
4 years, 7 months ago (2016-05-02 12:22:07 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 13:02:40 UTC) #33
bartfab (slow)
https://codereview.chromium.org/1892873002/diff/330001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1892873002/diff/330001/chrome/app/chromeos_strings.grdp#newcode6587 chrome/app/chromeos_strings.grdp:6587: Access to Android apps is disabled to the current ...
4 years, 7 months ago (2016-05-02 14:55:49 UTC) #34
Polina Bondarenko
Thanks for reviewing! Fixed comments. https://codereview.chromium.org/1892873002/diff/330001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1892873002/diff/330001/chrome/app/chromeos_strings.grdp#newcode6587 chrome/app/chromeos_strings.grdp:6587: Access to Android apps ...
4 years, 7 months ago (2016-05-03 13:41:55 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892873002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892873002/370001
4 years, 7 months ago (2016-05-03 13:42:20 UTC) #38
bartfab (slow)
https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode286 chrome/browser/chromeos/arc/arc_auth_service.cc:286: StartArc(); On 2016/05/03 13:41:54, Polina Bondarenko wrote: > On ...
4 years, 7 months ago (2016-05-03 14:25:18 UTC) #39
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 14:47:11 UTC) #41
Polina Bondarenko
https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode286 chrome/browser/chromeos/arc/arc_auth_service.cc:286: StartArc(); On 2016/05/03 14:25:18, bartfab (slow) wrote: > On ...
4 years, 7 months ago (2016-05-03 14:55:45 UTC) #42
bartfab (slow)
https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode286 chrome/browser/chromeos/arc/arc_auth_service.cc:286: StartArc(); On 2016/05/03 14:55:44, Polina Bondarenko wrote: > On ...
4 years, 7 months ago (2016-05-03 15:26:38 UTC) #43
Polina Bondarenko
https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/330001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode286 chrome/browser/chromeos/arc/arc_auth_service.cc:286: StartArc(); On 2016/05/03 15:26:38, bartfab (slow) wrote: > On ...
4 years, 7 months ago (2016-05-03 16:42:16 UTC) #44
bartfab (slow)
lgtm https://codereview.chromium.org/1892873002/diff/410001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/410001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode613 chrome/browser/chromeos/arc/arc_auth_service.cc:613: if (profile_->GetPrefs()->GetBoolean(prefs::kArcSignedIn) || Nit: Multi-line conditionals require curly ...
4 years, 7 months ago (2016-05-03 16:53:44 UTC) #45
xiyuan
lgtm https://codereview.chromium.org/1892873002/diff/410001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/410001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode415 chrome/browser/chromeos/arc/arc_auth_service.cc:415: FOR_EACH_OBSERVER(Observer, observer_list_, OnShutdownBridge()); nit: move this to the ...
4 years, 7 months ago (2016-05-03 16:57:24 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892873002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892873002/430001
4 years, 7 months ago (2016-05-03 17:20:10 UTC) #48
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 18:04:10 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892873002/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892873002/450001
4 years, 7 months ago (2016-05-04 10:38:00 UTC) #53
Polina Bondarenko
Thanks a lot for reviewing! https://codereview.chromium.org/1892873002/diff/410001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1892873002/diff/410001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode415 chrome/browser/chromeos/arc/arc_auth_service.cc:415: FOR_EACH_OBSERVER(Observer, observer_list_, OnShutdownBridge()); On ...
4 years, 7 months ago (2016-05-04 10:38:11 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/535) ios-simulator on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-04 10:39:54 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892873002/470001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892873002/470001
4 years, 7 months ago (2016-05-04 10:55:47 UTC) #59
commit-bot: I haz the power
Committed patchset #18 (id:470001)
4 years, 7 months ago (2016-05-04 11:51:41 UTC) #61
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/b7ceb29f22004c344c982e48de1e436834b69274 Cr-Commit-Position: refs/heads/master@{#391482}
4 years, 7 months ago (2016-05-04 11:52:54 UTC) #63
lgcheng
A revert of this CL (patchset #18 id:470001) has been created in https://codereview.chromium.org/1951343002/ by lgcheng@google.com. ...
4 years, 7 months ago (2016-05-05 17:21:42 UTC) #64
elijahtaylor1
4 years, 7 months ago (2016-05-05 17:31:12 UTC) #65
Message was sent while issue was closed.
A revert of this CL (patchset #18 id:470001) has been created in
https://codereview.chromium.org/1948383002/ by elijahtaylor@chromium.org.

The reason for reverting is: broken ARC builders.

Powered by Google App Engine
This is Rietveld 408576698