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

Issue 14295008: Add ash SessionStateDelegate (Closed)

Created:
7 years, 8 months ago by bartfab (slow)
Modified:
7 years, 8 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, stevenjb
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add ash SessionStateDelegate This CL refactors the ShellDelegate by adding a SessionStateDelegate to which methods dealing with the session state can be moved. This cleans up the huge ShellDelegate interface and paves the way for further Chrome OS multiprofile work which will need to add several new methods related to the session state. This CL is only the first step. Several other methods should also move to SessionStateDelegate but I do not want to overburden a single CL. BUG=None TEST=Manual and browser/unit tests TBR=sky (for c/b/idle_chromeos.cc and c/chrome_browser_ui.gypi) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194578

Patch Set 1 #

Patch Set 2 : Updated ash_unittests. Rebased. #

Patch Set 3 : Renamed HaveActiveUser() to HasActiveUser(). #

Patch Set 4 : Ready for review. #

Total comments: 8

Patch Set 5 : Comments addressed. #

Patch Set 6 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -344 lines) Patch
M ash/accelerators/accelerator_controller.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M ash/accelerators/nested_dispatcher_controller_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 4 chunks +7 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
A ash/session_state_delegate.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A ash/session_state_delegate_stub.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A ash/session_state_delegate_stub.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M ash/shell.h View 4 chunks +6 lines, -7 lines 0 comments Download
M ash/shell.cc View 1 2 4 chunks +6 lines, -11 lines 0 comments Download
M ash/shell/app_list.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell/lock_view.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 3 chunks +1 line, -8 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 5 chunks +6 lines, -32 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell_delegate.h View 4 chunks +4 lines, -22 lines 0 comments Download
M ash/shell_unittest.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M ash/system/date/tray_date.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/tray/test_system_tray_delegate.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
A ash/test/test_session_state_delegate.h View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A ash/test/test_session_state_delegate.cc View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 4 chunks +6 lines, -32 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 5 chunks +15 lines, -50 lines 0 comments Download
M ash/wm/event_client_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ash/wm/gestures/shelf_gesture_handler.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/power_button_controller.cc View 4 chunks +15 lines, -8 lines 0 comments Download
M ash/wm/power_button_controller_unittest.cc View 1 11 chunks +11 lines, -8 lines 0 comments Download
M ash/wm/session_state_controller_impl2_unittest.cc View 1 7 chunks +7 lines, -4 lines 0 comments Download
M ash/wm/stacking_controller.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/window_cycle_controller.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_cycler.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/dbus/printer_service_provider.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/idle_chromeos.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc View 4 chunks +0 lines, -48 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_views.cc View 1 chunk +0 lines, -24 lines 0 comments Download
A chrome/browser/ui/ash/session_state_delegate.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/session_state_delegate_chromeos.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/session_state_delegate_views.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
bartfab (slow)
Hi Daniel, Could you review the ash/ and chrome/browser/ui/ash/ parts of this CL? Hi Nikita, ...
7 years, 8 months ago (2013-04-16 17:18:52 UTC) #1
Daniel Erat
lgtm https://codereview.chromium.org/14295008/diff/5001/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/14295008/diff/5001/ash/ash.gyp#newcode653 ash/ash.gyp:653: 'session_state_delegate_stub.cc', nit: fix alphabetization https://codereview.chromium.org/14295008/diff/5001/ash/ash.gyp#newcode787 ash/ash.gyp:787: 'session_state_delegate_stub.cc', here ...
7 years, 8 months ago (2013-04-16 17:34:15 UTC) #2
stevenjb
lgtm
7 years, 8 months ago (2013-04-16 18:42:43 UTC) #3
Nikita (slow)
lgtm
7 years, 8 months ago (2013-04-16 20:00:41 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/14295008/diff/5001/ash/ash.gyp File ash/ash.gyp (right): https://chromiumcodereview.appspot.com/14295008/diff/5001/ash/ash.gyp#newcode653 ash/ash.gyp:653: 'session_state_delegate_stub.cc', On 2013/04/16 17:34:15, Daniel Erat wrote: > nit: ...
7 years, 8 months ago (2013-04-17 08:14:40 UTC) #5
bartfab (slow)
7 years, 8 months ago (2013-04-17 12:22:06 UTC) #6
Message was sent while issue was closed.
Committed patchset #6 manually as r194578 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698