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

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed)

Created:
7 years, 8 months ago by Nikita (slow)
Modified:
7 years, 8 months ago
Reviewers:
Dmitry Polukhin, sadrul, sky
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Chrome OS multi-profiles backend and UI. * Tray - launch login UI for multi-profiles * UserManager: GetLoggedInUsers(), SwitchActiveUser(), add GetActiveUser() which will later replace GetLoggedInUser() * Login UI: support "sign in to add" mode Notifications: * Pass chromeos::User* in details for - NOTIFICATION_LOGIN_USER_CHANGED - NOTIFICATION_ACTIVE_USER_CHANGED - NOTIFICATION_SESSION_STARTED * Add NOTIFICATION_ACTIVE_USER_CHANGED (only when switching users for now) Multi-profile hacks * Initialize BrowserPolicyConnector only for primary user (http://crbug.com/230349) * Redirect logging only once (http://crbug.com/230345) * OAuth2LoginManager tracks only last logged in user (http://crbug.com/230342) Depends on: * Changes in ProfileManager https://codereview.chromium.org/14028010/ * Adding concept of "signin profile" https://codereview.chromium.org/13633003/ BUG=180903, 217016 TEST=ProfileManager tests, manual (with all CLs applied and --multi-profiles) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194185

Patch Set 1 #

Total comments: 14

Patch Set 2 : hacks: reference issues #

Total comments: 2

Patch Set 3 : review #

Patch Set 4 : Added issues # for each new TODO #

Patch Set 5 : merge #

Patch Set 6 : merge #

Patch Set 7 : fix primary user flag #

Patch Set 8 : move IsMultiProfilesEnabled() out of cros #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -110 lines) Patch
M ash/shell/shell_delegate_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 3 chunks +12 lines, -1 line 0 comments Download
M ash/system/tray/test_system_tray_delegate.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/system/tray/test_system_tray_delegate.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 2 chunks +9 lines, -4 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 1 chunk +29 lines, -21 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/oauth2_login_manager.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user.h View 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user.cc View 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 4 chunks +25 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 29 chunks +150 lines, -58 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 5 chunks +57 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/login/display_manager.js View 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/header_bar.js View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 chunk +13 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 1 chunk +13 lines, -4 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Nikita (slow)
dpolukhin@ for */chromeos/login/* sky@ for ash/*, chrome/browser/ui/ash/* and chrome/common/* sadrul@ for ash/system/user/*, ash/system/tray/* and chrome/browser/chromeos/system/ash_system_tray_delegate.cc
7 years, 8 months ago (2013-04-11 12:34:30 UTC) #1
Nikita (slow)
Mocks: http://goto.google.com/cros-multi-profiles-mocks Design doc: http://goto.google.com/cros-multi-profiles-mocks
7 years, 8 months ago (2013-04-11 12:36:27 UTC) #2
Nikita (slow)
On 2013/04/11 12:36:27, Nikita Kostylev wrote: > Design doc: http://goto.google.com/cros-multi-profiles-mocks Correct link for design doc ...
7 years, 8 months ago (2013-04-11 13:06:39 UTC) #3
Nikita (slow)
>> Multi-profile hacks Filed issues for each of those.
7 years, 8 months ago (2013-04-11 13:12:55 UTC) #4
Dmitry Polukhin
https://codereview.chromium.org/14139003/diff/1/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/14139003/diff/1/chrome/browser/chromeos/login/login_utils.cc#newcode330 chrome/browser/chromeos/login/login_utils.cc:330: bool is_primary_user = !UserManager::Get()->IsUserLoggedIn(); Please move definition closer to ...
7 years, 8 months ago (2013-04-11 13:34:14 UTC) #5
sadrul
ash/system/, ash_system_tray_delegate.cc LGTM https://codereview.chromium.org/14139003/diff/6001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc File chrome/browser/chromeos/system/ash_system_tray_delegate.cc (right): https://codereview.chromium.org/14139003/diff/6001/chrome/browser/chromeos/system/ash_system_tray_delegate.cc#newcode561 chrome/browser/chromeos/system/ash_system_tray_delegate.cc:561: ShowLoginWizard(std::string(), size); You could just do: ...
7 years, 8 months ago (2013-04-11 13:42:10 UTC) #6
sky
How come we use notifications for all of these instead of more specific observers?
7 years, 8 months ago (2013-04-11 16:44:25 UTC) #7
Nikita (slow)
Do you mean those who care about these notifications should be added as observer for ...
7 years, 8 months ago (2013-04-11 19:59:24 UTC) #8
Dmitry Polukhin
LGTM for chromeos parts The code has too many TODOs but we need this code ...
7 years, 8 months ago (2013-04-12 08:04:15 UTC) #9
sky
On Thu, Apr 11, 2013 at 12:59 PM, Nikita Kostylev <nkostylev@chromium.org> wrote: > Do you ...
7 years, 8 months ago (2013-04-12 15:02:14 UTC) #10
sky
LGTM
7 years, 8 months ago (2013-04-12 15:03:20 UTC) #11
Nikita (slow)
On 2013/04/12 15:02:14, sky wrote: > On Thu, Apr 11, 2013 at 12:59 PM, Nikita ...
7 years, 8 months ago (2013-04-12 15:41:18 UTC) #12
Nikita (slow)
https://codereview.chromium.org/14139003/diff/1/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/14139003/diff/1/chrome/browser/chromeos/login/login_utils.cc#newcode330 chrome/browser/chromeos/login/login_utils.cc:330: bool is_primary_user = !UserManager::Get()->IsUserLoggedIn(); On 2013/04/11 13:34:15, Dmitry Polukhin ...
7 years, 8 months ago (2013-04-12 15:41:25 UTC) #13
Nikita (slow)
Filed bunch of new issues tracking new TODOs.
7 years, 8 months ago (2013-04-12 16:21:29 UTC) #14
Nikita (slow)
7 years, 8 months ago (2013-04-15 16:02:08 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 manually as r194185 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698