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

Issue 2471643002: mash: remove the LockStateControllerDelegate. (Closed)

Created:
4 years, 1 month ago by Elliot Glaysher
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, James Cook, sky
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, derat+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: remove the LockStateControllerDelegate. This removes the LockStateControllerDelegate and mojoifys/renames it into the ShutdownClient, which is exported by chrome. While in the long term, we'll want to move the code that's currently in ShutdownClient into ash (and either use CrosSettings in ash or send messages to a dedicated CrosSettings service), the chromeos device settings code is sufficiently intertangled with the browser process that it isn't happening anytime soon. (See crbug.com/446937) BUG=628792 TEST=covered by converted ash_unittests; manually tested the mojo call in non-mash ash. Committed: https://crrev.com/8f7f2a6d3baca46a3271e038d574f9187f08fa52 Cr-Commit-Position: refs/heads/master@{#429471}

Patch Set 1 #

Patch Set 2 : Hopefully fix compile tests. #

Patch Set 3 : pass gn check? #

Patch Set 4 : Actually add the files. #

Patch Set 5 : Fix ash unittests #

Patch Set 6 : Add bug links + modify other overlay.json file. #

Total comments: 18

Patch Set 7 : jamescook comments + TestApi to its own file. #

Patch Set 8 : Remove DCHECK which was breaing tests. #

Total comments: 6

Patch Set 9 : sky comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -239 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/shutdown.mojom View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/test/BUILD.gn View 1 2 3 4 5 6 4 chunks +5 lines, -2 lines 0 comments Download
A ash/test/lock_state_controller_test_api.h View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
A ash/test/lock_state_controller_test_api.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
D ash/test/test_lock_state_controller_delegate.h View 1 1 chunk +0 lines, -35 lines 0 comments Download
D ash/test/test_lock_state_controller_delegate.cc View 1 1 chunk +0 lines, -20 lines 0 comments Download
A ash/test/test_shutdown_client.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A ash/test/test_shutdown_client.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M ash/wm/lock_state_controller.h View 1 2 3 4 5 6 5 chunks +14 lines, -64 lines 0 comments Download
M ash/wm/lock_state_controller.cc View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -12 lines 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 1 2 3 4 5 6 5 chunks +11 lines, -11 lines 0 comments Download
A ash/wm/shutdown_client_proxy.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A ash/wm/shutdown_client_proxy.cc View 1 2 3 7 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/app/mash/chrome_mash_content_browser_manifest_overlay.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/chrome_interface_factory.cc View 1 2 3 4 5 6 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/power/login_lock_state_notifier.cc View 2 chunks +0 lines, -5 lines 0 comments Download
D chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.h View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.cc View 1 chunk +0 lines, -43 lines 0 comments Download
A chrome/browser/chromeos/power/shutdown_client_impl.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/power/shutdown_client_impl.cc View 2 chunks +5 lines, -10 lines 0 comments Download

Messages

Total messages: 56 (44 generated)
Elliot Glaysher
https://codereview.chromium.org/2471643002/diff/100001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2471643002/diff/100001/ash/shell.cc#newcode728 ash/shell.cc:728: wm_shell_->delegate()->GetShellConnector()); Q: LockStateController can't trivially be moved to WmShell ...
4 years, 1 month ago (2016-11-02 19:13:29 UTC) #31
James Cook
Little stuff. I pondering making Chrome register itself during startup as the ShutdownClient, but I ...
4 years, 1 month ago (2016-11-02 20:20:04 UTC) #33
Elliot Glaysher
ptal. I also moved the test api to its own file. https://codereview.chromium.org/2471643002/diff/100001/ash/shell.cc File ash/shell.cc (right): ...
4 years, 1 month ago (2016-11-02 21:45:16 UTC) #36
James Cook
LGTM
4 years, 1 month ago (2016-11-02 21:59:14 UTC) #37
Elliot Glaysher
sky: review tsepez: mojom https://codereview.chromium.org/2471643002/diff/100001/ash/wm/shutdown_client_proxy.cc File ash/wm/shutdown_client_proxy.cc (right): https://codereview.chromium.org/2471643002/diff/100001/ash/wm/shutdown_client_proxy.cc#newcode13 ash/wm/shutdown_client_proxy.cc:13: : connector_(connector) {} On 2016/11/02 ...
4 years, 1 month ago (2016-11-02 22:20:47 UTC) #42
Tom Sepez
mojom LGTM
4 years, 1 month ago (2016-11-02 22:27:22 UTC) #44
sky
https://codereview.chromium.org/2471643002/diff/140001/ash/test/test_shutdown_client.h File ash/test/test_shutdown_client.h (right): https://codereview.chromium.org/2471643002/diff/140001/ash/test/test_shutdown_client.h#newcode1 ash/test/test_shutdown_client.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years, 1 month ago (2016-11-02 23:06:52 UTC) #45
Elliot Glaysher
ptal https://codereview.chromium.org/2471643002/diff/140001/ash/test/test_shutdown_client.h File ash/test/test_shutdown_client.h (right): https://codereview.chromium.org/2471643002/diff/140001/ash/test/test_shutdown_client.h#newcode1 ash/test/test_shutdown_client.h:1: // Copyright 2014 The Chromium Authors. All rights ...
4 years, 1 month ago (2016-11-02 23:12:28 UTC) #48
sky
Thanks for the clarification. I see the mocking is at the mojom::ShutdownClient, which LGTM
4 years, 1 month ago (2016-11-02 23:15:05 UTC) #49
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/2471643002/160001
4 years, 1 month ago (2016-11-03 00:02:57 UTC) #53
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 1 month ago (2016-11-03 00:21:07 UTC) #54
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 00:22:44 UTC) #56
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8f7f2a6d3baca46a3271e038d574f9187f08fa52
Cr-Commit-Position: refs/heads/master@{#429471}

Powered by Google App Engine
This is Rietveld 408576698