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

Issue 8925001: Allocate SocketController lazily. (Closed)

Created:
9 years ago by miket_OOO
Modified:
9 years ago
CC:
chromium-reviews, jstritar+watch_chromium.org, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

Allocate 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -23 lines) Patch
M chrome/browser/extensions/extension_service.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 chunks +24 lines, -4 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
miket_OOO
I am running tests now. I have not yet reproduced the bug that led me ...
9 years ago (2011-12-12 21:36:42 UTC) #1
asargent_no_longer_on_chrome
LGTM > As platform APIs get bigger, we should provide our own > dumping ground ...
9 years ago (2011-12-12 21:57:29 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8925001/6001
9 years ago (2011-12-13 17:39:29 UTC) #3
miket_OOO
The trybots are not happy (except for linux_rel), but I've looked at every failure on ...
9 years ago (2011-12-13 17:40:30 UTC) #4
commit-bot: I haz the power
Try job failure for 8925001-6001 (retry) on win_rel for step "compile" (clobber build). It's a ...
9 years ago (2011-12-13 17:59:10 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8925001/6001
9 years ago (2011-12-13 19:04:38 UTC) #6
commit-bot: I haz the power
Try job failure for 8925001-6001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
9 years ago (2011-12-13 20:09:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8925001/6001
9 years ago (2011-12-13 20:26:40 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-13 22:17:33 UTC) #9
Change committed as 114287

Powered by Google App Engine
This is Rietveld 408576698