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

Issue 2700693004: service_manager: More consistent Service lifecycle API (Closed)

Created:
3 years, 10 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

service_manager: More consistent Service lifecycle API This introduces OnStartFailed() to be invoked in lieu of OnStart() if the Service pipe breaks before OnStart() can be invoked. This disambiguates the meaning of OnStop(), ensuring that it will now only be called in the event that OnStart() happened first. BUG=672614 R=sky@chromium.org Review-Url: https://codereview.chromium.org/2700693004 Cr-Commit-Position: refs/heads/master@{#451252} Committed: https://chromium.googlesource.com/chromium/src/+/6cadd4324682783aa817250cdf229c022086666a

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -15 lines) Patch
M services/service_manager/public/cpp/lib/service.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_context.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/service.h View 1 2 3 chunks +29 lines, -15 lines 0 comments Download
M services/service_manager/public/cpp/service_context.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
Ken Rockot(use gerrit already)
As discussed earlier this week. Note that this shouldn't affect existing code behavior in any ...
3 years, 10 months ago (2017-02-16 21:52:24 UTC) #2
Ken Rockot(use gerrit already)
OK - the ServiceContext now always calls QuitNow() after invoking OnStartFailed(). If we happen to ...
3 years, 10 months ago (2017-02-16 23:38:32 UTC) #6
sky
https://codereview.chromium.org/2700693004/diff/20001/services/service_manager/public/cpp/service.h File services/service_manager/public/cpp/service.h (right): https://codereview.chromium.org/2700693004/diff/20001/services/service_manager/public/cpp/service.h#newcode38 services/service_manager/public/cpp/service.h:38: virtual void OnStartFailed(); Please document that right this is ...
3 years, 10 months ago (2017-02-16 23:59:37 UTC) #7
sky
LGTM
3 years, 10 months ago (2017-02-16 23:59:58 UTC) #8
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2700693004/diff/20001/services/service_manager/public/cpp/service.h File services/service_manager/public/cpp/service.h (right): https://codereview.chromium.org/2700693004/diff/20001/services/service_manager/public/cpp/service.h#newcode38 services/service_manager/public/cpp/service.h:38: virtual void OnStartFailed(); On 2017/02/16 at 23:59:36, sky wrote: ...
3 years, 10 months ago (2017-02-17 00:09:07 UTC) #10
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/2700693004/40001
3 years, 10 months ago (2017-02-17 00:10:41 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/17033)
3 years, 10 months ago (2017-02-17 04:43:35 UTC) #16
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/2700693004/40001
3 years, 10 months ago (2017-02-17 06:02:36 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/6cadd4324682783aa817250cdf229c022086666a
3 years, 10 months ago (2017-02-17 06:48:12 UTC) #21
cfroussios
3 years, 10 months ago (2017-02-17 10:05:57 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2700123002/ by cfroussios@chromium.org.

The reason for reverting is: CL is the suspected culprit of breaking
ContentBrowserTest.BrowserCrashCallStack.

Powered by Google App Engine
This is Rietveld 408576698