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

Issue 417623002: user_manager component: Add UserManagerBase class. (Closed)

Created:
6 years, 5 months ago by Nikita (slow)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

user_manager component: Add UserManagerBase class. UserManagerBase contains common methods extracted from UserManagerImpl. UserManagerImpl was renamed to ChromeUserManager and inherits UserManagerBase. Misc refactoring: * Move HasBrowserStarted() to SessionManager * Add generic getter SessionManager::Get() which makes it possible for concrete clients don't depend on instance ownership like g_browser_process->platform_part()->SessionManager(). * Moved CRLSet code out of UserManager::UserLoggedIn(), to UserSessionManager. BUG=387614 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286187 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287153

Patch Set 1 #

Patch Set 2 : UserManagerImpl inherits UserManagerBase, compiles #

Patch Set 3 : rename UserManagerImpl > ChromeUserManager #

Patch Set 4 : Move HasBrowserRestarted to SessionManager, add SessionManager::Get() #

Patch Set 5 : final merge #

Patch Set 6 : fix broken tests #

Patch Set 7 : remove commented code #

Patch Set 8 : clang format #

Patch Set 9 : remove unused headers #

Patch Set 10 : Restore CRLSet code. #

Patch Set 11 : drop namespace #

Patch Set 12 : rebase #

Total comments: 20

Patch Set 13 : add per file session_manager.gypi components owners #

Total comments: 2

Patch Set 14 : review #

Patch Set 15 : nit #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Patch Set 18 : rebase #

Patch Set 19 : initialize local variable, avoid doing any actions in ctor #

Patch Set 20 : Unretained > weak pointer #

Patch Set 21 : rebase #

Patch Set 22 : add check for MessageLoop #

Patch Set 23 : check for LocalState, update test - make sure that policies are initialized on UserManager creation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+841 lines, -4968 lines) Patch
M chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +26 lines, -22 lines 0 comments Download
A + chrome/browser/chromeos/login/users/chrome_user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 8 chunks +46 lines, -263 lines 0 comments Download
A + chrome/browser/chromeos/login/users/chrome_user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 36 chunks +258 lines, -1081 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/mock_user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/users/mock_user_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/users/supervised_user_manager_impl.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/chromeos/login/users/user_manager_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +161 lines, -239 lines 0 comments Download
A + chrome/browser/chromeos/login/users/user_manager_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 34 chunks +233 lines, -1029 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_impl.h View 1 2 1 chunk +0 lines, -447 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_impl.cc View 1 2 1 chunk +0 lines, -1839 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/tray_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -2 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M components/session_manager.gypi View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M components/session_manager/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/session_manager/core/session_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +18 lines, -0 lines 0 comments Download
M components/session_manager/core/session_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +34 lines, -0 lines 0 comments Download
M components/user_manager/user.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Nikita (slow)
Please take a look, Dmitry - whole CL, Colin - components/session_manager.gypi
6 years, 4 months ago (2014-07-28 07:21:08 UTC) #1
Nikita (slow)
On 2014/07/28 07:21:08, Nikita Kostylev wrote: > Please take a look, > > Dmitry - ...
6 years, 4 months ago (2014-07-28 09:20:27 UTC) #2
Dmitry Polukhin
LGTM Please fix some minor inconsistencies that were before but since you are touching this ...
6 years, 4 months ago (2014-07-28 09:32:39 UTC) #3
Dmitry Polukhin
LGTM Please fix some minor inconsistencies that were before but since you are touching this ...
6 years, 4 months ago (2014-07-28 09:32:42 UTC) #4
jochen (gone - plz use gerrit)
components lgtm with nit https://codereview.chromium.org/417623002/diff/230001/components/session_manager/core/session_manager.cc File components/session_manager/core/session_manager.cc (right): https://codereview.chromium.org/417623002/diff/230001/components/session_manager/core/session_manager.cc#newcode26 components/session_manager/core/session_manager.cc:26: SessionManager::SetInstance(NULL); DCHECK() that the instance ...
6 years, 4 months ago (2014-07-29 08:48:41 UTC) #5
Nikita (slow)
https://codereview.chromium.org/417623002/diff/210001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/417623002/diff/210001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode709 chrome/browser/chromeos/login/session/user_session_manager.cc:709: InitializeCRLSetFetcherForPrimaryUser(user); On 2014/07/28 09:32:38, Dmitry Polukhin wrote: > Optional. ...
6 years, 4 months ago (2014-07-29 09:27:28 UTC) #6
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 4 months ago (2014-07-29 10:44:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/417623002/290001
6 years, 4 months ago (2014-07-29 10:45:45 UTC) #8
commit-bot: I haz the power
Change committed as 286187
6 years, 4 months ago (2014-07-29 13:05:27 UTC) #9
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 4 months ago (2014-08-01 13:09:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/417623002/450001
6 years, 4 months ago (2014-08-01 13:11:44 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-01 19:31:12 UTC) #12
Nikita (slow)
The CQ bit was unchecked by nkostylev@chromium.org
6 years, 4 months ago (2014-08-01 21:36:30 UTC) #13
Nikita (slow)
The CQ bit was checked by nkostylev@chromium.org
6 years, 4 months ago (2014-08-01 21:36:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/417623002/450001
6 years, 4 months ago (2014-08-01 21:38:34 UTC) #15
commit-bot: I haz the power
6 years, 4 months ago (2014-08-02 05:44:17 UTC) #16
Message was sent while issue was closed.
Change committed as 287153

Powered by Google App Engine
This is Rietveld 408576698