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

Issue 14927015: Translate device-local account IDs to user IDs (Closed)

Created:
7 years, 7 months ago by bartfab (slow)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Translate device-local account IDs to user IDs This CL decouples the namespaces used for device-local accounts in policy and user management. In addition to the account ID assigned by the server, each device-local account is given a user ID that always follows a canonical format and allows the account type to be identified just by looking at the user ID, regardless of the format chosen for the account ID by the server. BUG=240276 TEST=Manual in VM TBR=jhawkins (chrome/browser/ui/webui/policy_ui.cc) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201532

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fixed KioskAppManagerTest. Rebased. #

Patch Set 3 : Consistently and safely handle NULL brokers. #

Patch Set 4 : Fixed DeviceLocalAccountTest. #

Total comments: 20

Patch Set 5 : Comments addressed. Kiosk apps fixed. #

Total comments: 13

Patch Set 6 : Comments addressed. #

Patch Set 7 : Fix browser_tests. #

Total comments: 13

Patch Set 8 : Comments addressed. Rebased. #

Total comments: 2

Patch Set 9 : Fix one more typo in a comment. #

Patch Set 10 : Rebased. #

Patch Set 11 : Appease clang. #

Patch Set 12 : Fix forward declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+874 lines, -594 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_app_data.h View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_data.cc View 1 2 3 4 5 8 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_launcher.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc View 1 2 3 4 5 6 7 7 chunks +23 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.cc View 1 2 3 4 5 6 7 8 8 chunks +65 lines, -110 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc View 1 2 3 4 5 6 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc View 11 chunks +36 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 15 chunks +37 lines, -47 lines 0 comments Download
M chrome/browser/chromeos/login/login_performer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 11 chunks +70 lines, -75 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/chromeos/policy/device_local_account.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/device_local_account.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +158 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 4 9 chunks +21 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_provider.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_provider.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.h View 1 2 3 4 7 chunks +52 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 5 6 chunks +167 lines, -126 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 1 2 3 4 24 chunks +54 lines, -46 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.cc View 1 2 3 4 3 chunks +22 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings_unittest.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider_unittest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/kiosk_apps_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bartfab (slow)
Hi Mattias, Can you please review the policy/device settings side of this CL? Hi Nikita, ...
7 years, 7 months ago (2013-05-13 16:14:53 UTC) #1
Mattias Nissler (ping if slow)
FWIW, here's a batch of comments from an earlier review pass I didn't finish. Starting ...
7 years, 7 months ago (2013-05-15 08:46:40 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/14927015/diff/24001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/14927015/diff/24001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode902 chrome/browser/chromeos/login/existing_user_controller.cc:902: void ExistingUserController::ConfigurePublicSessionAutoLogin() { Hm, maybe a better approach for ...
7 years, 7 months ago (2013-05-15 09:38:47 UTC) #3
Nikita (slow)
chromeos/browser/login lgtm https://codereview.chromium.org/14927015/diff/24001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://codereview.chromium.org/14927015/diff/24001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode1189 chrome/browser/chromeos/login/user_manager_impl.cc:1189: bool UserManagerImpl::UpdateAndCleanUpPublicAccounts( I think that this method ...
7 years, 7 months ago (2013-05-15 09:40:30 UTC) #4
bartfab (slow)
Hi everyone, could you take another look? Hi Xiyuan, could you take a look at ...
7 years, 7 months ago (2013-05-17 11:14:27 UTC) #5
Mattias Nissler (ping if slow)
This will likely be my last review feedback for a week. I'm cool with this ...
7 years, 7 months ago (2013-05-17 14:29:44 UTC) #6
xiyuan
kiosk app part LGTM https://chromiumcodereview.appspot.com/14927015/diff/46001/chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc File chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc (right): https://chromiumcodereview.appspot.com/14927015/diff/46001/chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc#newcode117 chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc:117: const std::vector<policy::DeviceLocalAccount> device_local_accounts = On ...
7 years, 7 months ago (2013-05-17 15:46:52 UTC) #7
bartfab (slow)
Comments addressed. https://codereview.chromium.org/14927015/diff/24001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/14927015/diff/24001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode902 chrome/browser/chromeos/login/existing_user_controller.cc:902: void ExistingUserController::ConfigurePublicSessionAutoLogin() { On 2013/05/17 14:29:44, Mattias ...
7 years, 7 months ago (2013-05-17 16:08:47 UTC) #8
bartfab (slow)
Hi Joao, With Mattias out for a week, could you take a look at the ...
7 years, 7 months ago (2013-05-17 16:09:53 UTC) #9
xiyuan
Cool. Kiosk app part LGTM++
7 years, 7 months ago (2013-05-17 16:16:13 UTC) #10
Joao da Silva
lgtm with nits. Please see the comment about the break in a for loop, something ...
7 years, 7 months ago (2013-05-17 18:10:54 UTC) #11
xiyuan
https://codereview.chromium.org/14927015/diff/54004/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/14927015/diff/54004/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode128 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:128: break; On 2013/05/17 18:10:55, Joao da Silva wrote: > ...
7 years, 7 months ago (2013-05-17 18:20:10 UTC) #12
bartfab (slow)
https://codereview.chromium.org/14927015/diff/54004/chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc File chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc (right): https://codereview.chromium.org/14927015/diff/54004/chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc#newcode31 chrome/browser/chromeos/app_mode/kiosk_app_launcher.cc:31: } // namespace On 2013/05/17 18:10:55, Joao da Silva ...
7 years, 7 months ago (2013-05-21 13:27:07 UTC) #13
bartfab (slow)
Hi Julian, with Mattias out for the week, could you take a look at the ...
7 years, 7 months ago (2013-05-21 13:30:28 UTC) #14
bartfab (slow)
Hi Julian, with Mattias out for the week, could you take a look at the ...
7 years, 7 months ago (2013-05-21 13:30:48 UTC) #15
Joao da Silva
lgtm https://codereview.chromium.org/14927015/diff/61001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/14927015/diff/61001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode97 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:97: // Don't insert if the app if it's ...
7 years, 7 months ago (2013-05-21 13:32:30 UTC) #16
bartfab (slow)
https://codereview.chromium.org/14927015/diff/61001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/14927015/diff/61001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode97 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:97: // Don't insert if the app if it's already ...
7 years, 7 months ago (2013-05-21 13:37:42 UTC) #17
pastarmovj
Owner blessing for the chromeos/settings. lgtm
7 years, 7 months ago (2013-05-21 13:48:39 UTC) #18
James Hawkins
lgtm
7 years, 7 months ago (2013-05-21 20:56:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/14927015/79001
7 years, 7 months ago (2013-05-22 08:39:45 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-22 09:01:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/14927015/89004
7 years, 7 months ago (2013-05-22 09:09:53 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-22 09:31:02 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/14927015/94001
7 years, 7 months ago (2013-05-22 09:44:56 UTC) #24
commit-bot: I haz the power
7 years, 7 months ago (2013-05-22 15:37:30 UTC) #25
Message was sent while issue was closed.
Change committed as 201532

Powered by Google App Engine
This is Rietveld 408576698