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

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed)

Created:
4 years, 5 months ago by msw
Modified:
4 years, 5 months ago
Reviewers:
James Cook, sky, stevenjb
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, michaelpg+watch-options_chromium.org, sadrul, dtseng+watch_chromium.org, derat+watch_chromium.org, tfarina, aboxhall+watch_chromium.org, achuith+watch_chromium.org, dzhioev+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Migrate SessionStateDelegate access to WmShell. Use AshTestHelper::GetTestSessionStateDelegate as needed. Also fix include/namespace use. BUG=619636 TEST=Compiles; no behavior changes. R=jamescook@chromium.org,sky@chromium.org TBR=stevenjb@chromium.org Committed: https://crrev.com/bc0a8b48733b8b39adfddecfc207a11110f59e0f Cr-Commit-Position: refs/heads/master@{#403070}

Patch Set 1 #

Patch Set 2 : Sync and rebase. #

Patch Set 3 : Cleanup #

Patch Set 4 : Fix win compile warning; use static Shell::GetPrimaryRootWindowController. #

Total comments: 8

Patch Set 5 : Address comments. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -280 lines) Patch
M ash/accelerators/accelerator_controller_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/frame/custom_frame_view_ash_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/mus/workspace/workspace_layout_manager_unittest.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M ash/root_window_controller.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 16 chunks +24 lines, -28 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 6 chunks +7 lines, -7 lines 0 comments Download
M ash/shelf/shelf_locking_manager.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M ash/shell/app_list.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M ash/shell/lock_view.cc View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M ash/shell_unittest.cc View 1 2 8 chunks +17 lines, -19 lines 0 comments Download
M ash/system/chromeos/power/power_event_observer.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/system/overview/overview_button_tray_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/user/tray_user_unittest.cc View 1 2 9 chunks +21 lines, -23 lines 0 comments Download
M ash/test/ash_test_base.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M ash/test/ash_test_helper.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M ash/test/test_system_tray_delegate.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/ash_focus_rules_unittest.cc View 6 chunks +5 lines, -6 lines 0 comments Download
M ash/wm/event_client_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/gestures/shelf_gesture_handler.cc View 1 2 3 4 3 chunks +5 lines, -7 lines 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 1 2 3 4 7 chunks +8 lines, -9 lines 0 comments Download
M ash/wm/power_button_controller.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_private_api_unittest.cc View 4 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/chromeos/login/session_login_browsertest.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/ui/user_adding_screen_browsertest.cc View 1 2 5 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_context_menu_chromeos.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_context_menu_chromeos_unittest.cc View 1 2 5 chunks +5 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos_unittest.cc View 4 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 8 chunks +11 lines, -12 lines 2 comments Download
M chrome/browser/ui/ash/network_connect_delegate_chromeos.cc View 1 chunk +10 lines, -11 lines 2 comments Download
M chrome/browser/ui/ash/session_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/system_menu_model_builder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 50 (26 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111443002/1
4 years, 5 months ago (2016-06-29 01:09:04 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/117490)
4 years, 5 months ago (2016-06-29 01:29:19 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111443002/20001
4 years, 5 months ago (2016-06-29 18:23:38 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/117910)
4 years, 5 months ago (2016-06-29 18:42:25 UTC) #10
msw
Hey James, please take a look; thanks!
4 years, 5 months ago (2016-06-29 19:47:25 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111443002/40001
4 years, 5 months ago (2016-06-29 19:49:56 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/247871)
4 years, 5 months ago (2016-06-29 20:19:21 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111443002/60001
4 years, 5 months ago (2016-06-29 20:33:28 UTC) #18
James Cook
LGTM, nice cleanup. At some point we should move ownership of the SessionStateDelegate to WmShell, ...
4 years, 5 months ago (2016-06-29 21:12:23 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 21:34:30 UTC) #21
msw
https://codereview.chromium.org/2111443002/diff/60001/ash/root_window_controller_unittest.cc File ash/root_window_controller_unittest.cc (right): https://codereview.chromium.org/2111443002/diff/60001/ash/root_window_controller_unittest.cc#newcode425 ash/root_window_controller_unittest.cc:425: EXPECT_EQ(0, wm_shell->GetSessionStateDelegate()->NumberOfLoggedInUsers()); On 2016/06/29 21:12:22, James Cook wrote: > ...
4 years, 5 months ago (2016-06-29 21:43:34 UTC) #22
msw
Scott, please take a look for chrome/OWNERS; thanks! (mostly mechanical/straightforward, but not entirely so)
4 years, 5 months ago (2016-06-29 21:47:02 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111443002/80001
4 years, 5 months ago (2016-06-29 21:49:26 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 22:48:45 UTC) #29
sky
LGTM https://codereview.chromium.org/2111443002/diff/80001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/2111443002/diff/80001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc#newcode123 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:123: namespace ash { IMO this code shouldn't be ...
4 years, 5 months ago (2016-06-29 23:20:22 UTC) #30
msw
https://codereview.chromium.org/2111443002/diff/80001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/2111443002/diff/80001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc#newcode123 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:123: namespace ash { On 2016/06/29 23:20:21, sky wrote: > ...
4 years, 5 months ago (2016-06-29 23:21:55 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/2111443002/80001
4 years, 5 months ago (2016-06-29 23:23:01 UTC) #34
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/209996)
4 years, 5 months ago (2016-06-29 23:36:12 UTC) #36
msw
+TBR stevenjb for chrome/browser/ui/webui/options/chromeos/OWNERS
4 years, 5 months ago (2016-06-29 23:59:48 UTC) #39
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/2111443002/80001
4 years, 5 months ago (2016-06-30 00:00:59 UTC) #41
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/210041)
4 years, 5 months ago (2016-06-30 00:15:50 UTC) #43
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/2111443002/80001
4 years, 5 months ago (2016-06-30 01:41:13 UTC) #46
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-30 02:21:32 UTC) #48
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 02:23:27 UTC) #50
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bc0a8b48733b8b39adfddecfc207a11110f59e0f
Cr-Commit-Position: refs/heads/master@{#403070}

Powered by Google App Engine
This is Rietveld 408576698