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

Issue 15718003: Add SessionStateObserver with ActiveUserChanged() (Closed)

Created:
7 years, 6 months ago by Nikita (slow)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, dzhioev (left Google)
Visibility:
Public.

Description

Add SessionStateObserver with ActiveUserChanged() Depends on https://codereview.chromium.org/15974008/ which renames SessionStateObserver to LockStateObserver * Rename few instances of email to user_id * Add SessionStateDelegateChromeos implementation BUG=180903 R=bartfab@chromium.org, skuhne@chromium.org, sky@chromium.org, stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203985

Patch Set 1 #

Patch Set 2 : dl #

Patch Set 3 : c #

Patch Set 4 : merge #

Patch Set 5 : add #

Patch Set 6 : close button when switching users, notify observers with ActiveUserChanged() when new user logs in #

Total comments: 19

Patch Set 7 : merge & reviews #

Total comments: 2

Patch Set 8 : nits #

Total comments: 3

Patch Set 9 : review #

Patch Set 10 : UserIdList > UserEmailList #

Total comments: 8

Patch Set 11 : merge & add SessionStateDelegateChromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -115 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/session_state_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -4 lines 0 comments Download
M ash/session_state_delegate_stub.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -2 lines 0 comments Download
M ash/session_state_delegate_stub.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -3 lines 0 comments Download
A ash/session_state_observer.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M ash/system/user/tray_user_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M ash/test/test_session_state_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M ash/test/test_session_state_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/crash_restore_browsertest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 3 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_views.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -38 lines 0 comments Download
A chrome/browser/ui/ash/session_state_delegate_chromeos.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +37 lines, -17 lines 0 comments Download
A + chrome/browser/ui/ash/session_state_delegate_views.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_views.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/chrome_notification_types.h View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Nikita (slow)
bartfab@ - please review whole CL skuhne@ - please review *ash/*
7 years, 6 months ago (2013-05-31 15:05:04 UTC) #1
Mr4D (OOO till 08-26)
lgtm Only a few comments. https://codereview.chromium.org/15718003/diff/13001/ash/system/tray/system_tray.h File ash/system/tray/system_tray.h (right): https://codereview.chromium.org/15718003/diff/13001/ash/system/tray/system_tray.h#newcode127 ash/system/tray/system_tray.h:127: // Closes system bubble ...
7 years, 6 months ago (2013-05-31 22:23:39 UTC) #2
bartfab (slow)
https://codereview.chromium.org/15718003/diff/13001/ash/session_state_observer.h File ash/session_state_observer.h (right): https://codereview.chromium.org/15718003/diff/13001/ash/session_state_observer.h#newcode17 ash/session_state_observer.h:17: virtual void ActiveUserChanged(const std::string& user_id) {} Thank you for ...
7 years, 6 months ago (2013-06-03 09:00:06 UTC) #3
Nikita (slow)
Addressed all comments, please take a look. https://codereview.chromium.org/15718003/diff/13001/ash/session_state_observer.h File ash/session_state_observer.h (right): https://codereview.chromium.org/15718003/diff/13001/ash/session_state_observer.h#newcode17 ash/session_state_observer.h:17: virtual void ...
7 years, 6 months ago (2013-06-03 09:21:28 UTC) #4
bartfab (slow)
lgtm with two more nits. https://codereview.chromium.org/15718003/diff/13001/chrome/browser/ui/ash/session_state_delegate.h File chrome/browser/ui/ash/session_state_delegate.h (right): https://codereview.chromium.org/15718003/diff/13001/chrome/browser/ui/ash/session_state_delegate.h#newcode58 chrome/browser/ui/ash/session_state_delegate.h:58: ObserverList<ash::SessionStateObserver> session_state_observer_list_; On 2013/06/03 ...
7 years, 6 months ago (2013-06-03 09:26:52 UTC) #5
Nikita (slow)
https://codereview.chromium.org/15718003/diff/13001/chrome/browser/ui/ash/session_state_delegate.h File chrome/browser/ui/ash/session_state_delegate.h (right): https://codereview.chromium.org/15718003/diff/13001/chrome/browser/ui/ash/session_state_delegate.h#newcode58 chrome/browser/ui/ash/session_state_delegate.h:58: ObserverList<ash::SessionStateObserver> session_state_observer_list_; On 2013/06/03 09:26:52, bartfab wrote: > On ...
7 years, 6 months ago (2013-06-03 09:46:54 UTC) #6
Nikita (slow)
sky@ for owners review ash/* ash/shelf/* ash/test/* chrome/* stevenjb@ for owners review ash/system/*
7 years, 6 months ago (2013-06-03 12:01:20 UTC) #7
Nikita (slow)
sky@ for owners review ash/* ash/shelf/* ash/test/* chrome/* stevenjb@ for owners review ash/system/*
7 years, 6 months ago (2013-06-03 12:01:46 UTC) #8
sky
https://codereview.chromium.org/15718003/diff/28002/ash/session_state_delegate.h File ash/session_state_delegate.h (right): https://codereview.chromium.org/15718003/diff/28002/ash/session_state_delegate.h#newcode12 ash/session_state_delegate.h:12: #include "ash/session_state_observer.h" You should be able to forward declare ...
7 years, 6 months ago (2013-06-03 15:06:23 UTC) #9
Nikita (slow)
On 2013/06/03 15:06:23, sky wrote: > https://codereview.chromium.org/15718003/diff/28002/ash/session_state_delegate.h > File ash/session_state_delegate.h (right): > > https://codereview.chromium.org/15718003/diff/28002/ash/session_state_delegate.h#newcode12 > ...
7 years, 6 months ago (2013-06-03 15:23:47 UTC) #10
Nikita (slow)
On 2013/06/03 15:23:47, Nikita Kostylev wrote: > > Also, SessionState seems to have two very ...
7 years, 6 months ago (2013-06-03 15:27:59 UTC) #11
Nikita (slow)
On 2013/06/03 15:23:47, Nikita Kostylev wrote: > https://codereview.chromium.org/15718003/diff/28002/ash/session_state_observer.h#newcode17 > > ash/session_state_observer.h:17: virtual void ActiveUserChanged(const > ...
7 years, 6 months ago (2013-06-03 15:31:50 UTC) #12
Nikita (slow)
https://codereview.chromium.org/15718003/diff/28002/ash/session_state_delegate.h File ash/session_state_delegate.h (right): https://codereview.chromium.org/15718003/diff/28002/ash/session_state_delegate.h#newcode12 ash/session_state_delegate.h:12: #include "ash/session_state_observer.h" On 2013/06/03 15:06:23, sky wrote: > You ...
7 years, 6 months ago (2013-06-03 15:31:57 UTC) #13
sky
LGTM
7 years, 6 months ago (2013-06-03 16:09:00 UTC) #14
stevenjb
https://codereview.chromium.org/15718003/diff/36025/chrome/browser/chromeos/login/user_manager.h File chrome/browser/chromeos/login/user_manager.h (right): https://codereview.chromium.org/15718003/diff/36025/chrome/browser/chromeos/login/user_manager.h#newcode53 chrome/browser/chromeos/login/user_manager.h:53: virtual void ActiveUserChanged(const User* active_user) {} Virtual function implementations ...
7 years, 6 months ago (2013-06-03 16:51:59 UTC) #15
stevenjb
On 2013/06/03 15:23:47, Nikita Kostylev wrote: > On 2013/06/03 15:06:23, sky wrote: > > > ...
7 years, 6 months ago (2013-06-03 17:06:23 UTC) #16
Nikita (slow)
Steven, please take a look. Added SessionStateDelegateChromeos https://codereview.chromium.org/15718003/diff/36025/chrome/browser/chromeos/login/user_manager.h File chrome/browser/chromeos/login/user_manager.h (right): https://codereview.chromium.org/15718003/diff/36025/chrome/browser/chromeos/login/user_manager.h#newcode53 chrome/browser/chromeos/login/user_manager.h:53: virtual void ...
7 years, 6 months ago (2013-06-04 12:41:32 UTC) #17
stevenjb
lgtm
7 years, 6 months ago (2013-06-04 16:32:42 UTC) #18
Nikita (slow)
7 years, 6 months ago (2013-06-04 16:59:24 UTC) #19
Message was sent while issue was closed.
Committed patchset #11 manually as r203985 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698