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

Issue 2108793002: mash: Convert system tray logout button to wm common types (Closed)

Created:
4 years, 5 months ago by James Cook
Modified:
4 years, 5 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, kalyank, sadrul, davemoore+watch_chromium.org, oshima+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Convert system tray logout button to wm common types * Fold LastWindowClosedLogoutReminder into LogoutConfirmationController * Move LogoutConfirmationController ownership from Shell to WmShell * Place the logout confirmation dialog in the system modal container, not in the root (dialogs should not live directly in the root) * Move LabelTrayView to //ash/common/system/tray since it is not chromeos- specific BUG=619636 TEST=ash_unittests, manual testing after forcing the button to show Committed: https://crrev.com/b73810563987686c2e4f22ba98a10fa0275372b0 Cr-Commit-Position: refs/heads/master@{#402595}

Patch Set 1 #

Patch Set 2 : move files #

Patch Set 3 : ifdefs #

Total comments: 12

Patch Set 4 : Review comments, fix windows #

Total comments: 2

Patch Set 5 : more review comments, fix mash_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -1427 lines) Patch
M ash/ash.gyp View 1 6 chunks +12 lines, -14 lines 0 comments Download
M ash/common/system/chromeos/session/last_window_closed_observer.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
A + ash/common/system/chromeos/session/logout_button_tray.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/common/system/chromeos/session/logout_button_tray.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
A + ash/common/system/chromeos/session/logout_confirmation_controller.h View 1 4 chunks +14 lines, -4 lines 0 comments Download
A + ash/common/system/chromeos/session/logout_confirmation_controller.cc View 1 3 chunks +28 lines, -4 lines 0 comments Download
A + ash/common/system/chromeos/session/logout_confirmation_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + ash/common/system/chromeos/session/logout_confirmation_dialog.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
A + ash/common/system/chromeos/session/logout_confirmation_dialog.cc View 1 2 3 2 chunks +17 lines, -5 lines 0 comments Download
A + ash/common/system/chromeos/session/tray_session_length_limit.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/common/system/chromeos/session/tray_session_length_limit.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + ash/common/system/chromeos/session/tray_session_length_limit_unittest.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
A + ash/common/system/tray/label_tray_view.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/common/system/tray/label_tray_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/common/wm_shell.h View 1 2 3 4 4 chunks +16 lines, -3 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 4 2 chunks +20 lines, -10 lines 0 comments Download
M ash/mus/bridge/wm_shell_mus.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/shell.h View 3 chunks +0 lines, -9 lines 0 comments Download
M ash/shell.cc View 1 2 3 5 chunks +1 line, -19 lines 0 comments Download
M ash/system/chromeos/enterprise/tray_enterprise.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D ash/system/chromeos/label_tray_view.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D ash/system/chromeos/label_tray_view.cc View 1 1 chunk +0 lines, -64 lines 0 comments Download
D ash/system/chromeos/session/last_window_closed_logout_reminder.h View 1 chunk +0 lines, -29 lines 0 comments Download
D ash/system/chromeos/session/last_window_closed_logout_reminder.cc View 1 chunk +0 lines, -41 lines 0 comments Download
D ash/system/chromeos/session/logout_button_tray.h View 1 1 chunk +0 lines, -59 lines 0 comments Download
M ash/system/chromeos/session/logout_button_tray.cc View 1 1 chunk +0 lines, -162 lines 0 comments Download
M ash/system/chromeos/session/logout_confirmation_controller.h View 1 1 chunk +0 lines, -70 lines 0 comments Download
M ash/system/chromeos/session/logout_confirmation_controller.cc View 1 1 chunk +0 lines, -84 lines 0 comments Download
D ash/system/chromeos/session/logout_confirmation_controller_unittest.cc View 1 1 chunk +0 lines, -154 lines 0 comments Download
M ash/system/chromeos/session/logout_confirmation_dialog.h View 1 1 chunk +0 lines, -58 lines 0 comments Download
M ash/system/chromeos/session/logout_confirmation_dialog.cc View 1 1 chunk +0 lines, -110 lines 0 comments Download
D ash/system/chromeos/session/tray_session_length_limit.h View 1 1 chunk +0 lines, -75 lines 0 comments Download
D ash/system/chromeos/session/tray_session_length_limit.cc View 1 1 chunk +0 lines, -196 lines 0 comments Download
M ash/system/chromeos/session/tray_session_length_limit_unittest.cc View 1 1 chunk +0 lines, -159 lines 0 comments Download
M ash/system/chromeos/supervised/tray_supervised_user.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/system/status_area_widget.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/window/dialog_delegate.h View 2 chunks +7 lines, -6 lines 0 comments Download
M ui/views/window/dialog_delegate.cc View 2 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
James Cook
msw, please take a look.
4 years, 5 months ago (2016-06-28 18:09:54 UTC) #4
msw
https://codereview.chromium.org/2108793002/diff/40001/ash/common/system/chromeos/session/logout_confirmation_dialog.cc File ash/common/system/chromeos/session/logout_confirmation_dialog.cc (right): https://codereview.chromium.org/2108793002/diff/40001/ash/common/system/chromeos/session/logout_confirmation_dialog.cc#newcode52 ash/common/system/chromeos/session/logout_confirmation_dialog.cc:52: WmShell::Get() aside: I wish this were easier, but I ...
4 years, 5 months ago (2016-06-28 19:31:04 UTC) #5
James Cook
msw, please take another look. https://codereview.chromium.org/2108793002/diff/40001/ash/common/system/chromeos/session/logout_confirmation_dialog.cc File ash/common/system/chromeos/session/logout_confirmation_dialog.cc (right): https://codereview.chromium.org/2108793002/diff/40001/ash/common/system/chromeos/session/logout_confirmation_dialog.cc#newcode52 ash/common/system/chromeos/session/logout_confirmation_dialog.cc:52: WmShell::Get() On 2016/06/28 19:31:03, ...
4 years, 5 months ago (2016-06-28 20:14:46 UTC) #6
msw
lgtm with WmShell::GetPrimaryRootWindowController removal. https://codereview.chromium.org/2108793002/diff/40001/ash/common/wm_shell.cc File ash/common/wm_shell.cc (right): https://codereview.chromium.org/2108793002/diff/40001/ash/common/wm_shell.cc#newcode39 ash/common/wm_shell.cc:39: WmRootWindowController* WmShell::GetPrimaryRootWindowController() { On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 21:09:16 UTC) #7
James Cook
Thanks for the review! https://codereview.chromium.org/2108793002/diff/40001/ash/common/wm_shell.cc File ash/common/wm_shell.cc (right): https://codereview.chromium.org/2108793002/diff/40001/ash/common/wm_shell.cc#newcode39 ash/common/wm_shell.cc:39: WmRootWindowController* WmShell::GetPrimaryRootWindowController() { On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 21:41:02 UTC) #8
James Cook
sky, can I get OWNERS for ui/views/window/* ?
4 years, 5 months ago (2016-06-28 21:42:38 UTC) #10
sky
LGTM
4 years, 5 months ago (2016-06-28 22:14: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/2108793002/80001
4 years, 5 months ago (2016-06-28 22:26:47 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-28 23:44:43 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 23:47:25 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b73810563987686c2e4f22ba98a10fa0275372b0
Cr-Commit-Position: refs/heads/master@{#402595}

Powered by Google App Engine
This is Rietveld 408576698