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 178183005: Add LogoutConfirmationController to show LogoutConfirmationDialogs (Closed)

Created:
6 years, 9 months ago by bartfab (slow)
Modified:
6 years, 9 months ago
Reviewers:
stevenjb, Daniel Erat
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, binjin
Visibility:
Public.

Description

Add LogoutConfirmationController to show LogoutConfirmationDialogs LogoutButtonTray uses and owns LogoutConfirmationDialogView, a dialog that asks the user to confirm or deny logout. This CL generalizes the dialog and moves its ownership to a LogoutConfirmationController accessible via ash::Shell, allowing other classes to show the same dialog. BUG=278247 TEST=Updated unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255316

Patch Set 1 #

Total comments: 33

Patch Set 2 : Dismiss the confirmation dialog when the screen is locked. #

Patch Set 3 : Comments addressed. Rebased. #

Total comments: 2

Patch Set 4 : Rebased. #

Patch Set 5 : Comments addressed. #

Total comments: 4

Patch Set 6 : Comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+690 lines, -1723 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 2 chunks +12 lines, -10 lines 0 comments Download
M ash/shell.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 4 chunks +11 lines, -0 lines 0 comments Download
D ash/system/logout_button/logout_button_observer.h View 1 2 3 4 1 chunk +0 lines, -30 lines 0 comments Download
M ash/system/logout_button/logout_button_tray.h View 1 2 3 4 1 chunk +0 lines, -85 lines 0 comments Download
M ash/system/logout_button/logout_button_tray.cc View 1 2 3 4 1 chunk +0 lines, -234 lines 0 comments Download
D ash/system/logout_button/logout_button_tray_unittest.cc View 1 chunk +0 lines, -344 lines 0 comments Download
D ash/system/logout_button/logout_confirmation_dialog_view.h View 1 chunk +0 lines, -77 lines 0 comments Download
D ash/system/logout_button/logout_confirmation_dialog_view.cc View 1 2 3 4 1 chunk +0 lines, -132 lines 0 comments Download
A + ash/system/session/logout_button_observer.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/system/session/logout_button_tray.h View 1 2 3 4 2 chunks +5 lines, -24 lines 0 comments Download
A + ash/system/session/logout_button_tray.cc View 1 2 3 4 5 chunks +14 lines, -80 lines 0 comments Download
A ash/system/session/logout_confirmation_controller.h View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A ash/system/session/logout_confirmation_controller.cc View 1 2 3 4 5 1 chunk +87 lines, -0 lines 0 comments Download
A ash/system/session/logout_confirmation_controller_unittest.cc View 1 2 3 4 5 1 chunk +293 lines, -0 lines 0 comments Download
A ash/system/session/logout_confirmation_dialog.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A ash/system/session/logout_confirmation_dialog.cc View 1 2 3 4 1 chunk +116 lines, -0 lines 0 comments Download
A + ash/system/session/session_length_limit_observer.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/system/session/tray_session_length_limit.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
A + ash/system/session/tray_session_length_limit.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + ash/system/session/tray_session_length_limit_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D ash/system/session_length_limit/session_length_limit_observer.h View 1 2 3 4 1 chunk +0 lines, -26 lines 0 comments Download
D ash/system/session_length_limit/tray_session_length_limit.h View 1 2 3 4 1 chunk +0 lines, -77 lines 0 comments Download
D ash/system/session_length_limit/tray_session_length_limit.cc View 1 2 3 4 1 chunk +0 lines, -392 lines 0 comments Download
D ash/system/session_length_limit/tray_session_length_limit_unittest.cc View 1 2 3 4 1 chunk +0 lines, -195 lines 0 comments Download
M ash/system/status_area_widget.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/system/tray/system_tray_notifier.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
bartfab (slow)
Hi Steven, Could you take a look at ash/system/*? Hi Daniel, Could you take a ...
6 years, 9 months ago (2014-02-27 10:30:49 UTC) #1
Daniel Erat
lgtm for top-level ash/ files
6 years, 9 months ago (2014-02-27 11:59:15 UTC) #2
stevenjb
https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp#newcode374 ash/ash.gyp:374: 'system/logout_confirmation/logout_confirmation_dialog.h', Are logout_button and logout_conformation related at this point? ...
6 years, 9 months ago (2014-02-27 17:58:44 UTC) #3
bartfab (slow)
https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp#newcode374 ash/ash.gyp:374: 'system/logout_confirmation/logout_confirmation_dialog.h', On 2014/02/27 17:58:44, stevenjb wrote: > Are logout_button ...
6 years, 9 months ago (2014-02-28 12:13:49 UTC) #4
bartfab (slow)
Hi Steven, Friendly review ping.
6 years, 9 months ago (2014-03-04 22:45:42 UTC) #5
stevenjb
https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp#newcode374 ash/ash.gyp:374: 'system/logout_confirmation/logout_confirmation_dialog.h', On 2014/02/28 12:13:49, bartfab wrote: > On 2014/02/27 ...
6 years, 9 months ago (2014-03-04 23:33:29 UTC) #6
bartfab (slow)
https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/178183005/diff/1/ash/ash.gyp#newcode374 ash/ash.gyp:374: 'system/logout_confirmation/logout_confirmation_dialog.h', On 2014/03/04 23:33:29, stevenjb wrote: > On 2014/02/28 ...
6 years, 9 months ago (2014-03-05 18:19:44 UTC) #7
stevenjb
Looks good, just a couple final comments. https://codereview.chromium.org/178183005/diff/80001/ash/system/session/logout_confirmation_controller.cc File ash/system/session/logout_confirmation_controller.cc (right): https://codereview.chromium.org/178183005/diff/80001/ash/system/session/logout_confirmation_controller.cc#newcode20 ash/system/session/logout_confirmation_controller.cc:20: : clock_(reinterpret_cast<base::TickClock*>(new ...
6 years, 9 months ago (2014-03-05 18:57:19 UTC) #8
bartfab (slow)
https://codereview.chromium.org/178183005/diff/80001/ash/system/session/logout_confirmation_controller.cc File ash/system/session/logout_confirmation_controller.cc (right): https://codereview.chromium.org/178183005/diff/80001/ash/system/session/logout_confirmation_controller.cc#newcode20 ash/system/session/logout_confirmation_controller.cc:20: : clock_(reinterpret_cast<base::TickClock*>(new base::DefaultTickClock)), On 2014/03/05 18:57:20, stevenjb wrote: > ...
6 years, 9 months ago (2014-03-05 22:24:55 UTC) #9
stevenjb
lgtm
6 years, 9 months ago (2014-03-05 22:37:50 UTC) #10
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 9 months ago (2014-03-06 00:57:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/178183005/100001
6 years, 9 months ago (2014-03-06 00:59:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/178183005/100001
6 years, 9 months ago (2014-03-06 02:54:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/178183005/100001
6 years, 9 months ago (2014-03-06 03:18:56 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 11:41:42 UTC) #15
Message was sent while issue was closed.
Change committed as 255316

Powered by Google App Engine
This is Rietveld 408576698