Chromium Code Reviews
DescriptionService Manager: Implement graceful service termination
Adds a new ServiceControl client interface associated with
a service's Service interface. This allows a service to notify
the Service Manager that it's ready to be terminated by calling
RequestQuit().
Adds an ack reply to Service.OnConnect. The Service Manager will
ignore any RequestQuit() issued while an OnConnect is still
pending acknowledgement.
Fixes a race in existing service_manager_unittests which was
causing
some tests to hang fairly regularly, using RequestQuit()
to avoid races between service shutdown and incoming connections.
Also fixes incorrect base::SimpleThread usage in some tests.
BUG=654986, 662177
Committed: https://crrev.com/5b9cb3df6c06015d79aeb688c2b8905016086b9e
Committed: https://crrev.com/66ee2e33ec55e317dfbf11209b9a4c08ecac4c46
Cr-Original-Commit-Position: refs/heads/master@{#430414}
Cr-Commit-Position: refs/heads/master@{#431354}
Patch Set 1 #
Total comments: 1
Dependent Patchsets: Messages
Total messages: 33 (16 generated)
|