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

Issue 137623017: Cleanup Service<> and ServiceFactory<> when clients go away. (Closed)

Created:
6 years, 10 months ago by DaveMoore
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Cleanup when clients go away. We delete Service<> implementations when we get errors from the client connection. When all Services are deleted we sever the connection from the ServiceFactory<> to the Shell. That allows it to clean up its reference to the factory. BUG=None TEST=ServiceConnectorTest.ClientError R=darin@chromium.org, darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249422

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -23 lines) Patch
M mojo/mojo.gyp View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/shell/lib/service.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/shell/service.h View 1 4 chunks +19 lines, -2 lines 0 comments Download
M mojo/shell/service_connector.h View 1 2 chunks +14 lines, -1 line 0 comments Download
M mojo/shell/service_connector.cc View 1 4 chunks +22 lines, -2 lines 0 comments Download
M mojo/shell/service_connector_unittest.cc View 1 5 chunks +54 lines, -16 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
DaveMoore
6 years, 10 months ago (2014-02-05 20:18:17 UTC) #1
darin (slow to review)
LGTM https://codereview.chromium.org/137623017/diff/1/mojo/public/shell/lib/service.cc File mojo/public/shell/lib/service.cc (right): https://codereview.chromium.org/137623017/diff/1/mojo/public/shell/lib/service.cc#newcode16 mojo/public/shell/lib/service.cc:16: shell_.reset(); It seems like at this point we ...
6 years, 10 months ago (2014-02-06 05:00:46 UTC) #2
DaveMoore
Address review nits
6 years, 10 months ago (2014-02-06 15:52:08 UTC) #3
DaveMoore
The CQ bit was checked by davemoore@chromium.org
6 years, 10 months ago (2014-02-06 15:55:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davemoore@chromium.org/137623017/70001
6 years, 10 months ago (2014-02-06 15:56:15 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 16:45:30 UTC) #6
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=45759
6 years, 10 months ago (2014-02-06 16:45:30 UTC) #7
DaveMoore
6 years, 10 months ago (2014-02-06 17:35:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 manually as r249422 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698