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

Issue 11091023: ash : Decouple power button controller and session state controller. (Closed)

Created:
8 years, 2 months ago by Denis Kuznetsov (DE-MUC)
Modified:
8 years, 2 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
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

ash : Decouple power button controller and session state controller. Prepare code to introduce two versions of SessionStateController later. BUG=138171, 139461 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162140 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162675

Patch Set 1 #

Total comments: 30

Patch Set 2 : Post-review fixes #

Patch Set 3 : Initialize variable #

Total comments: 31

Patch Set 4 : Post-review fixes 2 #

Total comments: 16

Patch Set 5 : Post-Review fixes #3 #

Total comments: 35

Patch Set 6 : Post-review fixes #4 #

Patch Set 7 : Fix unit tests #

Patch Set 8 : Fix power button cancel behaviour + unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+895 lines, -680 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ash/wm/power_button_controller.h View 1 4 chunks +8 lines, -172 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 3 4 3 chunks +25 lines, -305 lines 0 comments Download
M ash/wm/power_button_controller_unittest.cc View 1 2 3 4 5 6 7 23 chunks +166 lines, -125 lines 0 comments Download
A ash/wm/session_state_controller.h View 1 2 3 4 5 1 chunk +277 lines, -0 lines 0 comments Download
A ash/wm/session_state_controller.cc View 1 2 3 4 5 6 7 1 chunk +359 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.h View 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/browser/chromeos/power/power_button_observer.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.h View 1 chunk +30 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Denis Kuznetsov (DE-MUC)
8 years, 2 months ago (2012-10-09 16:45:11 UTC) #1
Daniel Erat
https://codereview.chromium.org/11091023/diff/1/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/11091023/diff/1/ash/shell.cc#newcode49 ash/shell.cc:49: #include "ash/wm/session_state_controller.h" keep this list alphabetized https://codereview.chromium.org/11091023/diff/1/ash/wm/power_button_controller.h File ash/wm/power_button_controller.h ...
8 years, 2 months ago (2012-10-09 17:28:55 UTC) #2
Nikita (slow)
https://codereview.chromium.org/11091023/diff/1/ash/wm/power_button_controller.cc File ash/wm/power_button_controller.cc (right): https://codereview.chromium.org/11091023/diff/1/ash/wm/power_button_controller.cc#newcode53 ash/wm/power_button_controller.cc:53: if (controller_->IsEligibleForLock()) { nit: Drop {} here now that ...
8 years, 2 months ago (2012-10-09 18:30:05 UTC) #3
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11091023/diff/1/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/11091023/diff/1/ash/shell.cc#newcode49 ash/shell.cc:49: #include "ash/wm/session_state_controller.h" On 2012/10/09 17:28:55, Daniel Erat wrote: > ...
8 years, 2 months ago (2012-10-11 11:37:12 UTC) #4
Daniel Erat
here are some early comments https://codereview.chromium.org/11091023/diff/7003/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/11091023/diff/7003/ash/shell.h#newcode70 ash/shell.h:70: class SessionStateController; nit: fix ...
8 years, 2 months ago (2012-10-11 15:08:30 UTC) #5
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11091023/diff/7003/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/11091023/diff/7003/ash/shell.h#newcode70 ash/shell.h:70: class SessionStateController; On 2012/10/11 15:08:30, Daniel Erat wrote: > ...
8 years, 2 months ago (2012-10-11 16:14:38 UTC) #6
Daniel Erat
https://codereview.chromium.org/11091023/diff/7003/ash/wm/session_state_controller.h File ash/wm/session_state_controller.h (right): https://codereview.chromium.org/11091023/diff/7003/ash/wm/session_state_controller.h#newcode32 ash/wm/session_state_controller.h:32: namespace internal { On 2012/10/11 16:14:38, Denis Kuznetsov wrote: ...
8 years, 2 months ago (2012-10-11 16:16:42 UTC) #7
Daniel Erat
https://codereview.chromium.org/11091023/diff/9002/ash/wm/session_state_controller.cc File ash/wm/session_state_controller.cc (right): https://codereview.chromium.org/11091023/diff/9002/ash/wm/session_state_controller.cc#newcode231 ash/wm/session_state_controller.cc:231: nit: remove extra blank line https://codereview.chromium.org/11091023/diff/9002/ash/wm/session_state_controller.cc#newcode275 ash/wm/session_state_controller.cc:275: // ----------- ...
8 years, 2 months ago (2012-10-11 16:26:56 UTC) #8
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11091023/diff/9002/ash/wm/session_state_controller.cc File ash/wm/session_state_controller.cc (right): https://codereview.chromium.org/11091023/diff/9002/ash/wm/session_state_controller.cc#newcode231 ash/wm/session_state_controller.cc:231: On 2012/10/11 16:26:56, Daniel Erat wrote: > nit: remove ...
8 years, 2 months ago (2012-10-15 11:49:58 UTC) #9
Daniel Erat
LGTM with a few more comments https://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc File ash/wm/session_state_controller.cc (right): https://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc#newcode73 ash/wm/session_state_controller.cc:73: if (shutting_down_ || ...
8 years, 2 months ago (2012-10-15 13:24:47 UTC) #10
Nikita (slow)
lgtm with few comments. http://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc File ash/wm/session_state_controller.cc (right): http://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc#newcode19 ash/wm/session_state_controller.cc:19: nit: drop empty line. http://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc#newcode31 ...
8 years, 2 months ago (2012-10-16 12:43:45 UTC) #11
Daniel Erat
comments about comments http://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc File ash/wm/session_state_controller.cc (right): http://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc#newcode31 ash/wm/session_state_controller.cc:31: On 2012/10/16 12:43:45, Nikita Kostylev wrote: ...
8 years, 2 months ago (2012-10-16 14:04:16 UTC) #12
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc File ash/wm/session_state_controller.cc (right): https://codereview.chromium.org/11091023/diff/14001/ash/wm/session_state_controller.cc#newcode19 ash/wm/session_state_controller.cc:19: On 2012/10/16 12:43:45, Nikita Kostylev wrote: > nit: drop ...
8 years, 2 months ago (2012-10-16 14:24:53 UTC) #13
Nikita (slow)
still lgtm More of these seems to be not a strict style guide but a ...
8 years, 2 months ago (2012-10-16 14:29:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11091023/27001
8 years, 2 months ago (2012-10-16 14:29:02 UTC) #15
commit-bot: I haz the power
Presubmit check for 11091023-27001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-16 14:29:28 UTC) #16
sky
LGTM
8 years, 2 months ago (2012-10-16 14:32:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11091023/27001
8 years, 2 months ago (2012-10-16 14:33:32 UTC) #18
commit-bot: I haz the power
Change committed as 162140
8 years, 2 months ago (2012-10-16 16:27:57 UTC) #19
Nikita (slow)
Last patchset has linux_chromeos trybot run but that was done via CQ so ash_unittests were ...
8 years, 2 months ago (2012-10-16 19:27:19 UTC) #20
Daniel Erat
On 2012/10/16 19:27:19, Nikita Kostylev wrote: > Last patchset has linux_chromeos trybot run but that ...
8 years, 2 months ago (2012-10-16 23:54:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11091023/33002
8 years, 2 months ago (2012-10-17 13:59:14 UTC) #22
Daniel Erat
Please do not commit this without addressing the issue that I pointed out over email ...
8 years, 2 months ago (2012-10-17 14:36:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11091023/43003
8 years, 2 months ago (2012-10-18 07:08:12 UTC) #24
commit-bot: I haz the power
8 years, 2 months ago (2012-10-18 08:58:15 UTC) #25
Change committed as 162675

Powered by Google App Engine
This is Rietveld 408576698