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

Issue 11419184: Add public accounts to UserManager (Closed)

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

Description

Add public accounts to UserManager This CL extends the UserManager to handle public accounts defined through policy. User pods are dynamically added and removed when the list of public accounts in policy changes. Any data belonging to obsolete accounts is also removed, taking care not to remove it prematurely if a user is currently logged into the account. The CL also makes the user list handling more robust by checking for duplicate entries in the user list prefs and logging these as errors. The pods added for public accounts are not functional yet. The login flow for public accounts will be the topic of another CL. BUG=158509 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170507

Patch Set 1 #

Patch Set 2 : Use weak_ptr to handle UserManagerImpl/CrosSettings shutdown race. Fix unit tests. #

Patch Set 3 : Re-upload against the correct upstream commit. #

Total comments: 28

Patch Set 4 : Comments addressed. Note that browser tests still hang... still investigating. #

Patch Set 5 : Back to mutable, avoiding a dangerous and ugly const_cast in UserManagerImpl::GetUsers(). #

Patch Set 6 : Fix WallpaperManagerBrowserTest. #

Patch Set 7 : Quickly fix comment in typo before anyone notices... #

Total comments: 34

Patch Set 8 : Comments addressed. Replaced all references to "device-local accounts" with "public accounts". #

Patch Set 9 : Comments addressed. #

Patch Set 10 : Removed an unnecessary variable. #

Total comments: 4

Patch Set 11 : Comment addressed. #

Patch Set 12 : Made comment easier to understand. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -143 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 1 chunk +4 lines, -0 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 5 chunks +30 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 17 chunks +268 lines, -103 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_unittest.cc View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc View 1 2 3 4 5 6 6 chunks +23 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_service.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/stub_cros_settings_provider.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 4 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bartfab (slow)
Hi Ivan, Could you please review? Hi Xiyuan, FYI, this is my implementation of public ...
8 years ago (2012-11-27 15:42:44 UTC) #1
bartfab (slow)
Hi Julian, Could you take a look at the chrome/browser/chromeos/settings changes?
8 years ago (2012-11-27 17:58:19 UTC) #2
bartfab (slow)
On 2012/11/27 17:58:19, bartfab wrote: > Hi Julian, > > Could you take a look ...
8 years ago (2012-11-27 18:08:14 UTC) #3
pastarmovj
A few comments from me. https://chromiumcodereview.appspot.com/11419184/diff/11003/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://chromiumcodereview.appspot.com/11419184/diff/11003/chrome/browser/chromeos/login/existing_user_controller.cc#newcode192 chrome/browser/chromeos/login/existing_user_controller.cc:192: // TODO(xiyuan): Clean user ...
8 years ago (2012-11-28 09:57:16 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/11419184/diff/11003/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://chromiumcodereview.appspot.com/11419184/diff/11003/chrome/browser/chromeos/login/existing_user_controller.cc#newcode192 chrome/browser/chromeos/login/existing_user_controller.cc:192: // TODO(xiyuan): Clean user profile whose email is not ...
8 years ago (2012-11-28 12:30:16 UTC) #5
bartfab (slow)
Hi Nikita, Could you review the chrome_browser_main_chromeos.cc change?
8 years ago (2012-11-28 12:31:38 UTC) #6
bartfab (slow)
On 2012/11/28 12:31:38, bartfab wrote: > Hi Nikita, > > Could you review the chrome_browser_main_chromeos.cc ...
8 years ago (2012-11-28 13:47:25 UTC) #7
pastarmovj
lgtm
8 years ago (2012-11-28 14:07:40 UTC) #8
Nikita (slow)
I've executed cros_ trybots.
8 years ago (2012-11-28 18:27:38 UTC) #9
bartfab (slow)
On 2012/11/28 18:27:38, Nikita Kostylev wrote: > I've executed cros_ trybots. cros_amd64 flaked out. Trying ...
8 years ago (2012-11-28 19:20:28 UTC) #10
Ivan Korotkov
https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (left): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode211 chrome/browser/chromeos/login/user_manager_impl.cc:211: Why are you removing this bit? https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode256 chrome/browser/chromeos/login/user_manager_impl.cc:256: // ...
8 years ago (2012-11-28 21:40:52 UTC) #11
Ivan Korotkov
Sorry, I've realised that public accounts are not gaia accounts but a different thing. Please ...
8 years ago (2012-11-29 11:49:28 UTC) #12
Nikita (slow)
https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (left): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode211 chrome/browser/chromeos/login/user_manager_impl.cc:211: On 2012/11/28 21:40:53, Ivan Korotkov wrote: > Why are ...
8 years ago (2012-11-29 12:00:50 UTC) #13
Ivan Korotkov
https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#newcode49 chrome/browser/chromeos/login/user_manager_impl.cc:49: const char kRegularUsers[] = "LoggedInUsers"; On 2012/11/29 12:00:50, Nikita ...
8 years ago (2012-11-29 12:06:31 UTC) #14
bartfab (slow)
https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (left): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode211 chrome/browser/chromeos/login/user_manager_impl.cc:211: On 2012/11/29 12:00:50, Nikita Kostylev wrote: > On 2012/11/28 ...
8 years ago (2012-11-29 14:18:09 UTC) #15
bartfab (slow)
unit_tests and interactive_ui_tests passed locally. I will run some trybots to make sure they are ...
8 years ago (2012-11-29 14:21:56 UTC) #16
Nikita (slow)
https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#newcode783 chrome/browser/chromeos/login/user_manager_impl.cc:783: std::string logged_in_user; Please rename to logged_in_user_email so that you ...
8 years ago (2012-11-29 16:42:50 UTC) #17
Ivan Korotkov
LGTM but please leave the CommitPendingWrite lines in UserManager https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (left): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode211 chrome/browser/chromeos/login/user_manager_impl.cc:211: ...
8 years ago (2012-11-29 17:25:33 UTC) #18
bartfab (slow)
https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (left): https://codereview.chromium.org/11419184/diff/14005/chrome/browser/chromeos/login/user_manager_impl.cc#oldcode211 chrome/browser/chromeos/login/user_manager_impl.cc:211: On 2012/11/29 17:25:33, Ivan Korotkov wrote: > On 2012/11/29 ...
8 years ago (2012-11-29 18:56:17 UTC) #19
bartfab (slow)
Nikita, ping, I still need your approval before I can land this.
8 years ago (2012-11-30 12:33:13 UTC) #20
Nikita (slow)
lgtm https://codereview.chromium.org/11419184/diff/4026/chrome/browser/chromeos/login/user_manager_impl.h File chrome/browser/chromeos/login/user_manager_impl.h (right): https://codereview.chromium.org/11419184/diff/4026/chrome/browser/chromeos/login/user_manager_impl.h#newcode141 chrome/browser/chromeos/login/user_manager_impl.h:141: // Replaces the list of public accounts with ...
8 years ago (2012-11-30 14:20:01 UTC) #21
Nikita (slow)
https://codereview.chromium.org/11419184/diff/4026/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://codereview.chromium.org/11419184/diff/4026/chrome/browser/chromeos/login/user_manager_impl.cc#newcode128 chrome/browser/chromeos/login/user_manager_impl.cc:128: LOG(ERROR) << "Corrupt entry in user list at index ...
8 years ago (2012-11-30 14:32:57 UTC) #22
bartfab (slow)
https://chromiumcodereview.appspot.com/11419184/diff/4026/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://chromiumcodereview.appspot.com/11419184/diff/4026/chrome/browser/chromeos/login/user_manager_impl.cc#newcode128 chrome/browser/chromeos/login/user_manager_impl.cc:128: LOG(ERROR) << "Corrupt entry in user list at index ...
8 years ago (2012-11-30 14:46:27 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/11419184/12026
8 years ago (2012-11-30 15:40:04 UTC) #24
commit-bot: I haz the power
8 years ago (2012-11-30 19:23:02 UTC) #25
Message was sent while issue was closed.
Change committed as 170507

Powered by Google App Engine
This is Rietveld 408576698