DescriptionAllocate SocketController lazily.
To work around some unit tests that use ExtensionService but don't
provide an IO thread that SocketController now needs to completely
tear itself down, we allocate SocketController lazily and DCHECK on
destruction that there is an IO thread message loop. This is a
reasonable compromise for getting the benefit of lifetime management
by sticking SocketController in ExtensionService.
BTW, aa said putting random crap in ExtensionService wasn't a good idea.
Our chickens are coming home to roost. As platform APIs get bigger,
we should provide our own dumping ground for these classes, and then
callers won't get hung up in surprising lifetime issues like this one.
BUG=106969
TEST=existing unit/heap/mem checks should cover us. Verified memcheck behavior manually.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114287
Patch Set 1 #Patch Set 2 : Remove suppressions. #
Total comments: 1
Patch Set 3 : Nit from Antony. #
Messages
Total messages: 9 (0 generated)
|