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

Issue 407593002: mojo: make NetworkServiceImpl clean up after itself (Closed)

Created:
6 years, 5 months ago by tim (not reviewing)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

mojo: make NetworkServiceImpl clean up after itself Each URLLoaderImpl created by NetworkServiceImpl can allocate a net::URLRequest. When shutting down the app, destruction of the NetworkContext and the URLRequestContext within it expects that all net::URLRequest resources have been freed by now (it CHECKs). NetworkService is an app like any other and can't make any assumptions about when it is being destroyed relative to other apps in the system that may have been using it, so the safest thing to do is to have it gracefully tear-down in-progress URLLoaders. Note: the only reason we're not seeing the CHECK happen is because things shut down (the process terminates) before we even get to ~URLRequestContext. I'll be repairing shutdown in an upcoming CL. BUG=394477 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284777

Patch Set 1 : #

Patch Set 2 : review #

Total comments: 1

Patch Set 3 : scoping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M mojo/services/network/main.cc View 1 2 1 chunk +15 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tim (not reviewing)
Darin, ptal? I know it's not the prettiest thing, but the current code is being ...
6 years, 5 months ago (2014-07-18 17:33:07 UTC) #1
darin (slow to review)
Hmm, another approach is to make the Delegate in main.cc (or at least the NetworkContext) ...
6 years, 5 months ago (2014-07-18 18:20:00 UTC) #2
tim (not reviewing)
On 2014/07/18 18:20:00, darin wrote: > Hmm, another approach is to make the Delegate in ...
6 years, 5 months ago (2014-07-18 20:06:41 UTC) #3
tim (not reviewing)
On 2014/07/18 20:06:41, timsteele wrote: > On 2014/07/18 18:20:00, darin wrote: > > Hmm, another ...
6 years, 5 months ago (2014-07-18 22:11:07 UTC) #4
tim (not reviewing)
On 2014/07/18 22:11:07, timsteele wrote: > On 2014/07/18 20:06:41, timsteele wrote: > > On 2014/07/18 ...
6 years, 5 months ago (2014-07-19 01:05:39 UTC) #5
darin (slow to review)
Upon reflection, I wonder if it is really safe that the NetworkContext is OK being ...
6 years, 5 months ago (2014-07-19 03:54:44 UTC) #6
tim (not reviewing)
True about this not being an option for the standard SDK MojoMains. Similarly I originally ...
6 years, 5 months ago (2014-07-19 22:55:52 UTC) #7
tim (not reviewing)
On 2014/07/19 22:55:52, timsteele wrote: > True about this not being an option for the ...
6 years, 5 months ago (2014-07-20 21:48:34 UTC) #8
darin (slow to review)
LGTM for the current patch. I would just add some scoping brackets to make the ...
6 years, 5 months ago (2014-07-22 04:06:12 UTC) #9
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 5 months ago (2014-07-22 18:02:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/407593002/60001
6 years, 5 months ago (2014-07-22 18:03:24 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 21:23:29 UTC) #12
Message was sent while issue was closed.
Change committed as 284777

Powered by Google App Engine
This is Rietveld 408576698