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

Issue 2416253004: ash: Use session_manager::SessionState (Closed)

Created:
4 years, 2 months ago by xiyuan
Modified:
4 years, 2 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, kalyank, achuith+watch_chromium.org, sadrul, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Use session_manager::SessionState Replace SessionStateDelegate::SessionState with session_manager::SessionState to prepare for the mojo interface replacement of SessionStateDelegate. BUG=496761, 648964 TEST=All existing tests pass. Committed: https://crrev.com/ba4b204b711dff1d75ed36725aa7c8d4c46e7146 Cr-Commit-Position: refs/heads/master@{#425996}

Patch Set 1 #

Patch Set 2 : fix compile #

Total comments: 1

Patch Set 3 : use session_manager::SessionState #

Total comments: 5

Patch Set 4 : add comment about session state in SessionStaetDelegateChromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -129 lines) Patch
M ash/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/session/session_state_delegate.h View 1 2 3 chunks +2 lines, -17 lines 0 comments Download
M ash/common/session/session_state_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/session/session_state_observer.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_locking_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_locking_manager.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_locking_manager_unittest.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/system/overview/overview_button_tray.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/overview/overview_button_tray.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/test/test_session_state_delegate.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/test/test_session_state_delegate.cc View 1 2 5 chunks +11 lines, -10 lines 0 comments Download
M ash/common/wm/maximize_mode/maximize_mode_event_handler.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/kiosk_auto_launcher_session_manager_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/session_login_browsertest.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/ui/user_adding_screen.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/ui/user_adding_screen_browsertest.cc View 1 2 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_chromeos.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_chromeos.cc View 1 2 3 4 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
A + components/session_manager/BUILD.gn View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M components/session_manager/core/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/session_manager/core/session_manager.h View 1 2 1 chunk +1 line, -28 lines 0 comments Download
M components/session_manager/core/session_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A components/session_manager/session_manager_types.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (23 generated)
xiyuan
Move the SessionState enum out. There should be no functionality change. PTAL. Thanks.
4 years, 2 months ago (2016-10-14 23:18:25 UTC) #10
James Cook
LGTM https://codereview.chromium.org/2416253004/diff/20001/ash/common/session/session_types.h File ash/common/session/session_types.h (right): https://codereview.chromium.org/2416253004/diff/20001/ash/common/session/session_types.h#newcode16 ash/common/session/session_types.h:16: enum class SessionState { Thanks for switching to ...
4 years, 2 months ago (2016-10-15 00:12:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2416253004/20001
4 years, 2 months ago (2016-10-17 16:54:07 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/282651)
4 years, 2 months ago (2016-10-17 17:04:07 UTC) #16
xiyuan
+stevenjb Could you help with owner's approval for: c/b/ui/ash/session_state_delegate_chromeos.cc|h ? Thanks.
4 years, 2 months ago (2016-10-17 17:10:51 UTC) #18
stevenjb
On 2016/10/17 17:10:51, xiyuan wrote: > +stevenjb > > Could you help with owner's approval ...
4 years, 2 months ago (2016-10-17 17:47:37 UTC) #19
xiyuan
On 2016/10/17 17:47:37, stevenjb wrote: > On 2016/10/17 17:10:51, xiyuan wrote: > > +stevenjb > ...
4 years, 2 months ago (2016-10-17 18:23:10 UTC) #20
xiyuan
PTAL. Thanks. +achuith for components/session_manager and making ash depends on it.
4 years, 2 months ago (2016-10-17 22:14:41 UTC) #27
achuithb
lgtm. Feel free to add yourself to OWNERS of components/session_manager https://codereview.chromium.org/2416253004/diff/40001/components/session_manager/session_manager_types.h File components/session_manager/session_manager_types.h (right): https://codereview.chromium.org/2416253004/diff/40001/components/session_manager/session_manager_types.h#newcode10 ...
4 years, 2 months ago (2016-10-17 22:27:22 UTC) #28
stevenjb
Thanks for doing this! LGTM https://codereview.chromium.org/2416253004/diff/40001/chrome/browser/ui/ash/session_state_delegate_chromeos.cc File chrome/browser/ui/ash/session_state_delegate_chromeos.cc (right): https://codereview.chromium.org/2416253004/diff/40001/chrome/browser/ui/ash/session_state_delegate_chromeos.cc#newcode43 chrome/browser/ui/ash/session_state_delegate_chromeos.cc:43: chromeos::LoginState::Get()->AddObserver(this); We might want ...
4 years, 2 months ago (2016-10-17 22:59:34 UTC) #29
xiyuan
https://codereview.chromium.org/2416253004/diff/40001/chrome/browser/ui/ash/session_state_delegate_chromeos.cc File chrome/browser/ui/ash/session_state_delegate_chromeos.cc (right): https://codereview.chromium.org/2416253004/diff/40001/chrome/browser/ui/ash/session_state_delegate_chromeos.cc#newcode43 chrome/browser/ui/ash/session_state_delegate_chromeos.cc:43: chromeos::LoginState::Get()->AddObserver(this); On 2016/10/17 22:59:34, stevenjb wrote: > We might ...
4 years, 2 months ago (2016-10-17 23:17:28 UTC) #30
James Cook
still lgtm
4 years, 2 months ago (2016-10-17 23:28:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2416253004/60001
4 years, 2 months ago (2016-10-18 15:53:54 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-18 17:14:33 UTC) #36
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 17:18:06 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba4b204b711dff1d75ed36725aa7c8d4c46e7146
Cr-Commit-Position: refs/heads/master@{#425996}

Powered by Google App Engine
This is Rietveld 408576698