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

Issue 2102793002: arc: Implement silent OptIn mode for managed Arc. (Closed)

Created:
4 years, 5 months ago by khmel
Modified:
4 years, 5 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Implement silent OptIn mode for managed Arc. BUG=b/28987931 BUG=b/29121207 TEST=Manually on device. In case Arc is managed no UI is shown and Arc is started automatically. Emulate error and OptIn is automatically recovered without user interaction. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/146d8abde33c689871bd75b5057a753229657659 Cr-Commit-Position: refs/heads/master@{#402635}

Patch Set 1 #

Patch Set 2 : update #

Total comments: 4

Patch Set 3 : refactored #

Total comments: 13

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -126 lines) Patch
M chrome/browser/chromeos/arc/arc_android_management_checker.h View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_android_management_checker.cc View 1 2 3 5 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_android_management_checker_delegate.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_auth_context.h View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_auth_context.cc View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_auth_context_delegate.h View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 5 chunks +10 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 12 chunks +14 lines, -67 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.cc View 1 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/arc_support/background.js View 1 2 9 chunks +60 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
khmel
Hi Xiyuan, There is no GAIA api currently to request auth code silently. As discussed ...
4 years, 5 months ago (2016-06-27 22:31:49 UTC) #3
xiyuan
lgtm Feels really hacky, but... https://codereview.chromium.org/2102793002/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2102793002/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode101 chrome/browser/resources/chromeos/arc_support/background.js:101: function initialize(data, deviceId, _silentMode) ...
4 years, 5 months ago (2016-06-27 23:20:42 UTC) #4
khmel
Thanks Xiyuan for your review. I did more testing and found 2 issues: 1. I ...
4 years, 5 months ago (2016-06-28 20:05:39 UTC) #5
xiyuan
slgtm https://codereview.chromium.org/2102793002/diff/40001/chrome/browser/chromeos/arc/arc_auth_context.cc File chrome/browser/chromeos/arc/arc_auth_context.cc (right): https://codereview.chromium.org/2102793002/diff/40001/chrome/browser/chromeos/arc/arc_auth_context.cc#newcode24 chrome/browser/chromeos/arc/arc_auth_context.cc:24: } nit: insert an empty line before, and ...
4 years, 5 months ago (2016-06-28 21:49:14 UTC) #6
khmel
https://codereview.chromium.org/2102793002/diff/40001/chrome/browser/chromeos/arc/arc_auth_context.cc File chrome/browser/chromeos/arc/arc_auth_context.cc (right): https://codereview.chromium.org/2102793002/diff/40001/chrome/browser/chromeos/arc/arc_auth_context.cc#newcode24 chrome/browser/chromeos/arc/arc_auth_context.cc:24: } On 2016/06/28 21:49:13, xiyuan wrote: > nit: insert ...
4 years, 5 months ago (2016-06-29 00:33:40 UTC) #7
khmel
https://codereview.chromium.org/2102793002/diff/40001/chrome/browser/chromeos/arc/arc_auth_context.cc File chrome/browser/chromeos/arc/arc_auth_context.cc (right): https://codereview.chromium.org/2102793002/diff/40001/chrome/browser/chromeos/arc/arc_auth_context.cc#newcode24 chrome/browser/chromeos/arc/arc_auth_context.cc:24: } On 2016/06/28 21:49:13, xiyuan wrote: > nit: insert ...
4 years, 5 months ago (2016-06-29 00:33:40 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/2102793002/60001
4 years, 5 months ago (2016-06-29 00:36:20 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-29 01:47:16 UTC) #12
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/146d8abde33c689871bd75b5057a753229657659 Cr-Commit-Position: refs/heads/master@{#402635}
4 years, 5 months ago (2016-06-29 01:50:13 UTC) #14
victorhsieh0
4 years, 5 months ago (2016-06-29 20:01:51 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2108643007/ by victorhsieh@google.com.

The reason for reverting is: This change allows automatic auth code generation
and is considered as risky in production..

Powered by Google App Engine
This is Rietveld 408576698