Stop running arc container on supervised user creation flow
BUG=657934
TEST=Manually tested (enter supervised user creation flow, and confirm arc is not running)
Committed: https://crrev.com/c172fcc9dd0a684ebddb3e288d063a5174fcee88
Cr-Commit-Position: refs/heads/master@{#436332}
Description was changed from
==========
.
BUG=
==========
to
==========
Stop running arc container on supervised user creation flow
BUG=657934
TEST=Manually tested (enter supervised user creation flow, and confirm arc is
not running)
==========
+cc: Victor.
I'm ok with this direction for now, but we may want to revisit here later, as a
part of work related to crrev.com/2498033004. AFAIK, Victor will be ooo for a
while, so let's discuss when he's back.
https://codereview.chromium.org/2513473006/diff/1/chrome/browser/chromeos/arc...
File chrome/browser/chromeos/arc/arc_session_manager.cc (right):
https://codereview.chromium.org/2513473006/diff/1/chrome/browser/chromeos/arc...
chrome/browser/chromeos/arc/arc_session_manager.cc:174:
chromeos::ChromeUserManager::Get()->GetUserFlow(user->GetAccountId());
Is there a case where user_flow is nullptr even in the case where we want to run
ARC?
If not, DCHECK will be better? Or, at least
if (!user_flow || !user_flow->CanStartArc())
...
is the condition?
Hidehiko, Luis, PTAL
https://codereview.chromium.org/2513473006/diff/1/chrome/browser/chromeos/arc...
File chrome/browser/chromeos/arc/arc_session_manager.cc (right):
https://codereview.chromium.org/2513473006/diff/1/chrome/browser/chromeos/arc...
chrome/browser/chromeos/arc/arc_session_manager.cc:174:
chromeos::ChromeUserManager::Get()->GetUserFlow(user->GetAccountId());
On 2016/11/22 03:34:48, hidehiko wrote:
> Is there a case where user_flow is nullptr even in the case where we want to
run
> ARC?
> If not, DCHECK will be better? Or, at least
>
> if (!user_flow || !user_flow->CanStartArc())
> ...
>
> is the condition?
Done.
https://codereview.chromium.org/2513473006/diff/1/chrome/browser/chromeos/arc...
chrome/browser/chromeos/arc/arc_session_manager.cc:176: VLOG(1) << "ARC is
prohibited in the currenet user flow.";
On 2016/11/22 19:12:14, Luis Héctor Chávez wrote:
> nit: s/currenet/current/. also, consider changing "prohibited" by "not
allowed".
Done.
On 2016/12/02 20:38:55, achuithb wrote:
> lgtm
>
>
https://codereview.chromium.org/2513473006/diff/20001/chrome/browser/chromeos...
> File chrome/browser/chromeos/login/supervised/supervised_user_login_flow.cc
> (right):
>
>
https://codereview.chromium.org/2513473006/diff/20001/chrome/browser/chromeos...
> chrome/browser/chromeos/login/supervised/supervised_user_login_flow.cc:50:
> return false;
> On 2016/12/02 16:07:56, yoshiki wrote:
> > On 2016/11/30 19:03:12, achuithb wrote:
> > > Is this correct?
> >
> > We don't allow ARC for supervised user.
> >
> > Actually, it is also blocked in ArcSessionManager and we don't need to set
> > "false" here.
> >
>
https://cs.chromium.org/chromium/src/chrome/browser/chromeos/arc/arc_session_...
>
> Interesting. I know there are some use cases where supervised users are used
in
> schools, etc (even though this is not what we recommend). Ok.
This CL disallows ARC++ not for NON-LEGACY supervised user (aka. child account)
but for LEGACY supervised user. Non-legacy supervised user should keep using
ARC++ even with this CL.
Description was changed from
==========
Stop running arc container on supervised user creation flow
BUG=657934
TEST=Manually tested (enter supervised user creation flow, and confirm arc is
not running)
==========
to
==========
Stop running arc container on supervised user creation flow
BUG=657934
TEST=Manually tested (enter supervised user creation flow, and confirm arc is
not running)
==========
Description was changed from
==========
Stop running arc container on supervised user creation flow
BUG=657934
TEST=Manually tested (enter supervised user creation flow, and confirm arc is
not running)
==========
to
==========
Stop running arc container on supervised user creation flow
BUG=657934
TEST=Manually tested (enter supervised user creation flow, and confirm arc is
not running)
Committed: https://crrev.com/c172fcc9dd0a684ebddb3e288d063a5174fcee88
Cr-Commit-Position: refs/heads/master@{#436332}
==========
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c172fcc9dd0a684ebddb3e288d063a5174fcee88 Cr-Commit-Position: refs/heads/master@{#436332}
Issue 2513473006: Stop running arc container on supervised user creation flow
(Closed)
Created 4 years, 1 month ago by yoshiki
Modified 4 years ago
Reviewers: hidehiko, Luis Héctor Chávez, achuithb
Base URL:
Comments: 7