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

Issue 228553002: Preference dis/allowing supervised users creation is now available as owner setting, not only as de… (Closed)

Created:
6 years, 8 months ago by merkulova
Modified:
6 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, nkostylev+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Preference dis/allowing supervised users creation is now available as owner setting, not only as device policy. BUG=243341 TBR=phajdan.jr@chromium.org,bartfab@chromium.org,davidroche@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275033

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Default enable-supervised logic fixed. Duplicated subscriptions removed. #

Total comments: 4

Patch Set 3 : Logic for default settings moved to device_settings_provider. #

Total comments: 4

Patch Set 4 : Rebased #

Patch Set 5 : Unused preference cache removed. #

Patch Set 6 : Rebase #

Patch Set 7 : Unused declarations removed. #

Patch Set 8 : Test-specific logic added: check for BrowserPolicyConnector existence used. #

Total comments: 5

Patch Set 9 : Using EnterpriseInstallAttributes for getting device status. #

Total comments: 1

Patch Set 10 : GetDeviceMode callback added into DeviceSettingsService constructor. #

Patch Set 11 : Unnecessary callback removed. Patch applied for failing tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -42 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +30 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/settings/stub_cros_settings_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/stub_cros_settings_provider_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/chromeos/accounts_options.html View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 84 (0 generated)
merkulova
pastarmovj@ as owner of chrome/browser/chromeos/settings/*
6 years, 8 months ago (2014-04-08 12:37:16 UTC) #1
pastarmovj
c/b/chromeos/settings LGTM.
6 years, 8 months ago (2014-04-08 13:42:43 UTC) #2
Nikita (slow)
https://codereview.chromium.org/228553002/diff/50001/chrome/browser/chromeos/login/app_launch_signin_screen.h File chrome/browser/chromeos/login/app_launch_signin_screen.h (right): https://codereview.chromium.org/228553002/diff/50001/chrome/browser/chromeos/login/app_launch_signin_screen.h#newcode77 chrome/browser/chromeos/login/app_launch_signin_screen.h:77: virtual bool IsShowSupervised() const OVERRIDE; I don't see much ...
6 years, 8 months ago (2014-04-08 14:02:08 UTC) #3
merkulova
https://codereview.chromium.org/228553002/diff/50001/chrome/browser/chromeos/login/app_launch_signin_screen.h File chrome/browser/chromeos/login/app_launch_signin_screen.h (right): https://codereview.chromium.org/228553002/diff/50001/chrome/browser/chromeos/login/app_launch_signin_screen.h#newcode77 chrome/browser/chromeos/login/app_launch_signin_screen.h:77: virtual bool IsShowSupervised() const OVERRIDE; On 2014/04/08 14:02:09, Nikita ...
6 years, 8 months ago (2014-04-09 15:24:19 UTC) #4
merkulova
6 years, 8 months ago (2014-04-14 09:09:47 UTC) #5
Nikita (slow)
https://codereview.chromium.org/228553002/diff/70001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://codereview.chromium.org/228553002/diff/70001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode1840 chrome/browser/chromeos/login/user_manager_impl.cc:1840: policy::BrowserPolicyConnectorChromeOS* connector = nit: As discussed, please remove lines ...
6 years, 8 months ago (2014-04-14 11:48:59 UTC) #6
merkulova
https://codereview.chromium.org/228553002/diff/70001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://codereview.chromium.org/228553002/diff/70001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode1840 chrome/browser/chromeos/login/user_manager_impl.cc:1840: policy::BrowserPolicyConnectorChromeOS* connector = On 2014/04/14 11:48:59, Nikita Kostylev wrote: ...
6 years, 8 months ago (2014-04-14 12:14:47 UTC) #7
Nikita (slow)
lgtm Julian, please take another look.
6 years, 8 months ago (2014-04-14 14:43:56 UTC) #8
pastarmovj
Please see the comment I think there is something mixed up in the last version ...
6 years, 8 months ago (2014-04-15 08:54:27 UTC) #9
merkulova
Rebased. https://codereview.chromium.org/228553002/diff/90001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/228553002/diff/90001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode486 chrome/browser/chromeos/settings/device_settings_provider.cc:486: kAccountsPrefSupervisedUsersEnabled, supervised_users_enabled); On 2014/04/15 08:54:28, pastarmovj wrote: > ...
6 years, 8 months ago (2014-04-15 09:23:58 UTC) #10
pastarmovj
lgtm
6 years, 8 months ago (2014-04-15 12:41:42 UTC) #11
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 8 months ago (2014-04-15 12:44:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/130001
6 years, 8 months ago (2014-04-15 12:45:38 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 14:09:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-15 14:09:30 UTC) #15
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 8 months ago (2014-04-15 14:24:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/130001
6 years, 8 months ago (2014-04-15 14:25:18 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 14:33:07 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-15 14:33:07 UTC) #19
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 8 months ago (2014-04-16 08:44:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/150001
6 years, 8 months ago (2014-04-16 08:45:07 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 10:09:51 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-16 10:09:52 UTC) #23
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 8 months ago (2014-04-16 11:41:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/170001
6 years, 8 months ago (2014-04-16 11:41:13 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 13:09:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-16 13:09:58 UTC) #27
merkulova
Julian, can you have a look onto this CL one more time? As you see ...
6 years, 8 months ago (2014-04-17 15:01:15 UTC) #28
pastarmovj
On 2014/04/17 15:01:15, merkulova wrote: > Julian, can you have a look onto this CL ...
6 years, 8 months ago (2014-04-19 13:58:57 UTC) #29
merkulova
Mattias, can you have a look at the issue in device_settings_provider file?
6 years, 8 months ago (2014-04-21 07:03:37 UTC) #30
Mattias Nissler (ping if slow)
device_settings_provider.cc LGTM
6 years, 8 months ago (2014-04-22 08:19:33 UTC) #31
merkulova
On 2014/04/22 08:19:33, Mattias Nissler wrote: > device_settings_provider.cc LGTM No-no-no! Sorry, actually we have a ...
6 years, 8 months ago (2014-04-22 08:22:57 UTC) #32
Mattias Nissler (ping if slow)
On 2014/04/22 08:22:57, merkulova wrote: > On 2014/04/22 08:19:33, Mattias Nissler wrote: > > device_settings_provider.cc ...
6 years, 8 months ago (2014-04-22 08:30:14 UTC) #33
Mattias Nissler (ping if slow)
Actually adding stepco@.
6 years, 8 months ago (2014-04-22 08:34:42 UTC) #34
Steve Condie
The test which is breaking depends on fake enterprise install attributes to be set on ...
6 years, 8 months ago (2014-04-22 20:34:44 UTC) #35
Mattias Nissler (ping if slow)
Steve, thanks for clarifying and your suggestion for a fix. Instead of rolling a local ...
6 years, 8 months ago (2014-04-22 20:51:28 UTC) #36
Steve Condie
Created a CL to fix the test in preparation for this change: https://codereview.chromium.org/247283007/ Thanks for ...
6 years, 8 months ago (2014-04-23 19:53:46 UTC) #37
chromium-reviews
Thanks a lot. Expected an idea to try, you got the whole solution. Wow! On ...
6 years, 8 months ago (2014-04-24 06:53:43 UTC) #38
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 8 months ago (2014-04-25 07:30:47 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/190001
6 years, 8 months ago (2014-04-25 07:36:17 UTC) #40
Alexander Potapenko
The CQ bit was unchecked by glider@chromium.org
6 years, 8 months ago (2014-04-25 12:45:51 UTC) #41
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 7 months ago (2014-04-29 07:55:35 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/190001
6 years, 7 months ago (2014-04-29 07:57:03 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 09:09:06 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 09:09:07 UTC) #45
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 7 months ago (2014-04-29 09:27:29 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/210001
6 years, 7 months ago (2014-04-29 09:29:39 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 10:07:27 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-29 10:07:27 UTC) #49
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 7 months ago (2014-04-29 10:38:48 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/210001
6 years, 7 months ago (2014-04-29 10:39:06 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 11:35:32 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 11:35:33 UTC) #53
merkulova
Julian, Mattias, please have another look. Another bunch of tests is failing. DeviceOAuth2TokenServiceTest.* And again ...
6 years, 7 months ago (2014-04-30 14:05:54 UTC) #54
Mattias Nissler (ping if slow)
On 2014/04/30 14:05:54, merkulova wrote: > Julian, Mattias, please have another look. > > Another ...
6 years, 7 months ago (2014-05-02 12:47:12 UTC) #55
Mattias Nissler (ping if slow)
On 2014/05/02 12:47:12, Mattias Nissler wrote: > On 2014/04/30 14:05:54, merkulova wrote: > > Julian, ...
6 years, 7 months ago (2014-05-02 12:49:04 UTC) #56
merkulova
It seems TestingBrowserProcess is already used at this test. Or you mean some specific init? ...
6 years, 7 months ago (2014-05-06 12:42:12 UTC) #57
merkulova
friendly ping
6 years, 7 months ago (2014-05-12 07:13:22 UTC) #58
Mattias Nissler (ping if slow)
Sorry, I had typed a long reply but seem to have failed to send it. ...
6 years, 7 months ago (2014-05-12 09:20:20 UTC) #59
merkulova
+jam@ for chrome/browser/browser_process* files +phajdan.jr@ for chrome/test/base/testing_browser_process Explicit check used for covering unit-tests logic.
6 years, 7 months ago (2014-05-13 14:29:44 UTC) #60
jam
https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode472 chrome/browser/chromeos/settings/device_settings_provider.cc:472: if (g_browser_process->is_browser_policy_connector_created()) { why this check? it's not deterministic ...
6 years, 7 months ago (2014-05-13 21:09:10 UTC) #61
merkulova
https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode472 chrome/browser/chromeos/settings/device_settings_provider.cc:472: if (g_browser_process->is_browser_policy_connector_created()) { On 2014/05/13 21:09:11, jam wrote: > ...
6 years, 7 months ago (2014-05-14 06:30:09 UTC) #62
jam
https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode472 chrome/browser/chromeos/settings/device_settings_provider.cc:472: if (g_browser_process->is_browser_policy_connector_created()) { On 2014/05/14 06:30:10, merkulova wrote: > ...
6 years, 7 months ago (2014-05-14 17:29:45 UTC) #63
merkulova
Implemented enterprise-status check using EnterpriseInstallAttributes. Works on a device. DeviceOAuth2TokenServiceTest.* tests pass. https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc ...
6 years, 7 months ago (2014-05-23 09:27:14 UTC) #64
Mattias Nissler (ping if slow)
https://codereview.chromium.org/228553002/diff/310001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/228553002/diff/310001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode477 chrome/browser/chromeos/settings/device_settings_provider.cc:477: DBusThreadManager::Get()->GetCryptohomeClient())); EnterpriseInstallAttributes is not meant to be instantiated on ...
6 years, 7 months ago (2014-05-26 08:11:41 UTC) #65
merkulova
As bartfab@ proposed adding callback into the constructor. DeviceOAuth2TokenServiceTest tests pass.
6 years, 6 months ago (2014-05-28 15:46:04 UTC) #66
jam
https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/228553002/diff/290001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode472 chrome/browser/chromeos/settings/device_settings_provider.cc:472: if (g_browser_process->is_browser_policy_connector_created()) { On 2014/05/23 09:27:15, merkulova wrote: > ...
6 years, 6 months ago (2014-05-28 17:38:39 UTC) #67
merkulova
Julian, can you have one more look?
6 years, 6 months ago (2014-05-29 15:07:46 UTC) #68
pastarmovj
lgtm
6 years, 6 months ago (2014-05-30 09:38:06 UTC) #69
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 6 months ago (2014-05-30 10:46:32 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/330001
6 years, 6 months ago (2014-05-30 10:48:35 UTC) #71
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 12:46:18 UTC) #72
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 13:58:47 UTC) #73
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/32646)
6 years, 6 months ago (2014-05-30 13:58:49 UTC) #74
merkulova
+David and Bartosz
6 years, 6 months ago (2014-06-02 13:17:32 UTC) #75
merkulova
6 years, 6 months ago (2014-06-04 08:45:28 UTC) #76
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 6 months ago (2014-06-04 14:03:53 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/350001
6 years, 6 months ago (2014-06-04 14:05:33 UTC) #78
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-04 16:47:36 UTC) #79
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 16:49:49 UTC) #80
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/13871)
6 years, 6 months ago (2014-06-04 16:49:51 UTC) #81
merkulova
The CQ bit was checked by merkulova@chromium.org
6 years, 6 months ago (2014-06-05 07:12:51 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/merkulova@chromium.org/228553002/350001
6 years, 6 months ago (2014-06-05 07:14:22 UTC) #83
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 07:16:28 UTC) #84
Message was sent while issue was closed.
Change committed as 275033

Powered by Google App Engine
This is Rietveld 408576698