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

Issue 2058173002: mash: Move SystemTrayDelegate ownership to WmShell (Closed)

Created:
4 years, 6 months ago by James Cook
Modified:
4 years, 6 months ago
Reviewers:
msw
CC:
chromium-reviews, sadrul, dtseng+watch_chromium.org, derat+watch_chromium.org, mlamouri+watch-screen-orientation_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, aboxhall+watch_chromium.org, je_julie, darin-cc_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, 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: Move SystemTrayDelegate ownership to WmShell This makes it possible to use inside //ash/common. (SystemTrayDelegate is a dependency of TrayUpdate, which I'm in the process of moving to //ash/common.) * Make WmShell non-pure-virtual * Fix now-unneeded includes of shell.h * Fix some unnecessary ash:: qualifiers along the way BUG=615155 TEST=existing ash_unittests, chrome unit_tests and browser_tests TBR=sky@chromium.org for mechanical changes to //chrome/browser Committed: https://crrev.com/443e42d71ea1b9836c434c661cb2cd2517d413d4 Cr-Commit-Position: refs/heads/master@{#399277}

Patch Set 1 #

Total comments: 21

Patch Set 2 : review feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -202 lines) Patch
M ash/accelerators/accelerator_controller.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_interactive_uitest_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm_shell.h View 1 3 chunks +16 lines, -1 line 1 comment Download
M ash/common/wm_shell.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download
M ash/content/display/screen_orientation_controller_chromeos_unittest.cc View 1 2 chunks +2 lines, -3 lines 1 comment Download
M ash/metrics/user_metrics_recorder.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 5 chunks +7 lines, -4 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/shell.h View 1 3 chunks +0 lines, -6 lines 0 comments Download
M ash/shell.cc View 1 4 chunks +8 lines, -9 lines 0 comments Download
M ash/system/cast/tray_cast.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ash/system/chromeos/bluetooth/tray_bluetooth.cc View 1 13 chunks +14 lines, -18 lines 0 comments Download
M ash/system/chromeos/enterprise/tray_enterprise.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M ash/system/chromeos/network/network_state_list_detailed_view.cc View 5 chunks +5 lines, -6 lines 0 comments Download
M ash/system/chromeos/network/tray_vpn.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/chromeos/network/vpn_list_view.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M ash/system/chromeos/power/dual_role_notification.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/chromeos/session/last_window_closed_logout_reminder.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/chromeos/session/logout_button_tray.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/chromeos/session/tray_session_length_limit.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/chromeos/settings/tray_settings.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M ash/system/chromeos/supervised/tray_supervised_user.cc View 6 chunks +11 lines, -12 lines 0 comments Download
M ash/system/chromeos/supervised/tray_supervised_user_unittest.cc View 1 3 chunks +2 lines, -5 lines 0 comments Download
M ash/system/chromeos/tray_caps_lock.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M ash/system/chromeos/tray_display.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M ash/system/chromeos/tray_display_unittest.cc View 1 3 chunks +3 lines, -9 lines 0 comments Download
M ash/system/chromeos/tray_tracing.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/date/date_default_view.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M ash/system/date/date_view.cc View 5 chunks +6 lines, -10 lines 0 comments Download
M ash/system/ime/tray_ime_chromeos.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M ash/system/overview/overview_button_tray.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/system/status_area_widget.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray.cc View 6 chunks +11 lines, -8 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/tray_accessibility.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/system/tray_update.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M ash/system/user/tray_user.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M ash/system/user/user_card_view.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/system/user/user_view.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M ash/test/ash_test_base.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/test/status_area_widget_test_helper.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/test/tray_cast_test_api.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M ash/wm/overview/window_selector_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/power/power_button_observer.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/profiles/avatar_menu_actions_chromeos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/network_connect_delegate_chromeos.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_tray_cast_browsertest_chromeos.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/vpn_delegate_chromeos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (6 generated)
James Cook
msw, please take a look. sky@ and I agreed yesterday that we're OK with WmShell ...
4 years, 6 months ago (2016-06-10 17:56:55 UTC) #2
msw
lgtm with nits https://codereview.chromium.org/2058173002/diff/1/ash/content/display/screen_orientation_controller_chromeos_unittest.cc File ash/content/display/screen_orientation_controller_chromeos_unittest.cc (right): https://codereview.chromium.org/2058173002/diff/1/ash/content/display/screen_orientation_controller_chromeos_unittest.cc#newcode420 ash/content/display/screen_orientation_controller_chromeos_unittest.cc:420: test::TestSystemTrayDelegate* tray_delegate = nit: use AshTestBase::GetSystemTrayDelegate ...
4 years, 6 months ago (2016-06-10 18:48:21 UTC) #3
James Cook
Thanks for the quick review. https://codereview.chromium.org/2058173002/diff/1/ash/content/display/screen_orientation_controller_chromeos_unittest.cc File ash/content/display/screen_orientation_controller_chromeos_unittest.cc (right): https://codereview.chromium.org/2058173002/diff/1/ash/content/display/screen_orientation_controller_chromeos_unittest.cc#newcode420 ash/content/display/screen_orientation_controller_chromeos_unittest.cc:420: test::TestSystemTrayDelegate* tray_delegate = On ...
4 years, 6 months ago (2016-06-10 20:20:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058173002/20001
4 years, 6 months ago (2016-06-10 20:21:52 UTC) #8
msw
still lgtm https://codereview.chromium.org/2058173002/diff/20001/ash/common/wm_shell.h File ash/common/wm_shell.h (right): https://codereview.chromium.org/2058173002/diff/20001/ash/common/wm_shell.h#newcode24 ash/common/wm_shell.h:24: class Shell; nit: needed? https://codereview.chromium.org/2058173002/diff/20001/ash/content/display/screen_orientation_controller_chromeos_unittest.cc File ash/content/display/screen_orientation_controller_chromeos_unittest.cc ...
4 years, 6 months ago (2016-06-10 20:48:10 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-10 21:45:03 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 21:45:21 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 21:46:24 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/443e42d71ea1b9836c434c661cb2cd2517d413d4
Cr-Commit-Position: refs/heads/master@{#399277}

Powered by Google App Engine
This is Rietveld 408576698