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

Issue 2646033002: mash: Exit the root process if the window manager service crashes (Closed)

Created:
3 years, 11 months ago by James Cook
Modified:
3 years, 10 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Exit the root process if the window manager service crashes Both the browser and ash cache information about each other's state. For now we've decided not to try to make ash restartable. Instead we're going to bring everything down when ash crashes. The underlying Chrome OS session manager will then restart chrome --mash to bring everything back up. * Set a quit callback on all services and terminate the root process if the ash service disconnects. * Plumb the quit callback through the BackgroundServiceManager. * Don't use mash_session from mash_runner. It's simpler to start the desired services (window manager, quick_launch) explicitly. TODO: Shut down root process when mus ui service crashes. TODO: The window server hits a DCHECK when the root process shuts down. BUG=678683 TEST=added to service_manager_unittests TBR=tsepez@chromium.org Review-Url: https://codereview.chromium.org/2646033002 Cr-Commit-Position: refs/heads/master@{#447408} Committed: https://chromium.googlesource.com/chromium/src/+/f98489f8975f814711ffecfb180ee46cbbd17519

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : cleanup #

Total comments: 5

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -17 lines) Patch
M chrome/app/mash/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/app/mash/chrome_mash_manifest.json View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/app/mash/mash_runner.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M chrome/app/mash/mash_runner.cc View 1 2 3 6 chunks +51 lines, -9 lines 0 comments Download
M content/common/service_manager/service_manager_connection_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M services/service_manager/background/background_service_manager.h View 1 2 5 chunks +13 lines, -0 lines 0 comments Download
M services/service_manager/background/background_service_manager.cc View 1 2 2 chunks +36 lines, -0 lines 0 comments Download
A services/service_manager/background/tests/OWNERS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M services/service_manager/background/tests/background_service_manager_unittest.cc View 1 2 3 chunks +38 lines, -2 lines 0 comments Download
M services/service_manager/background/tests/test.mojom View 1 1 chunk +3 lines, -0 lines 0 comments Download
M services/service_manager/background/tests/test_service.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/service.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (14 generated)
James Cook
rockot, PTAL https://codereview.chromium.org/2646033002/diff/80001/services/service_manager/background/tests/background_service_manager_unittest.cc File services/service_manager/background/tests/background_service_manager_unittest.cc (right): https://codereview.chromium.org/2646033002/diff/80001/services/service_manager/background/tests/background_service_manager_unittest.cc#newcode84 services/service_manager/background/tests/background_service_manager_unittest.cc:84: BackgroundServiceManager background_service_manager(nullptr, nullptr); I looked at de-duplicating ...
3 years, 10 months ago (2017-01-31 23:14:16 UTC) #7
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2646033002/diff/80001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2646033002/diff/80001/chrome/app/mash/mash_runner.cc#newcode206 chrome/app/mash/mash_runner.cc:206: base::Bind(&MashRunner::OnInstanceQuitInMain, base::Unretained(this))); Instead of making the RunLoop and ...
3 years, 10 months ago (2017-01-31 23:33:28 UTC) #11
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2646033002/diff/80001/chrome/app/mash/mash_runner.cc File chrome/app/mash/mash_runner.cc (right): https://codereview.chromium.org/2646033002/diff/80001/chrome/app/mash/mash_runner.cc#newcode206 chrome/app/mash/mash_runner.cc:206: base::Bind(&MashRunner::OnInstanceQuitInMain, base::Unretained(this))); On 2017/01/31 at 23:33:28, Ken Rockot wrote: ...
3 years, 10 months ago (2017-01-31 23:34:51 UTC) #12
James Cook
TBR tsepez for adding a method to a mojom for a test service that only ...
3 years, 10 months ago (2017-02-01 00:41:32 UTC) #14
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/2646033002/100001
3 years, 10 months ago (2017-02-01 00:43:28 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 02:07:06 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f98489f8975f814711ffecfb180e...

Powered by Google App Engine
This is Rietveld 408576698