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

Issue 387055: Always destruct url request context getter on io thread.... (Closed)

Created:
11 years, 1 month ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Spellchecker: Always destruct url request context getter on io thread. To do this, we have to initiate downloads on the UI thread and don't hold onto a reference in the file thread. BUG=27667 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32129

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : clear data_ #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -20 lines) Patch
M chrome/browser/cookies_tree_model_unittest.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/gtk/options/cookies_view_unittest.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/net/url_request_context_getter.h View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/spellcheck_host.h View 2 3 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/spellcheck_host.cc View 1 2 3 7 chunks +44 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Evan Stade
I broke this out from the other changelist because of deadlines.
11 years, 1 month ago (2009-11-14 00:34:34 UTC) #1
jam
Can you coordinate with Eric? He has a similar patch, although he also cleaned up ...
11 years, 1 month ago (2009-11-14 00:40:44 UTC) #2
eroman
This looks fine, but make sure to run with a memory checker -- there are ...
11 years, 1 month ago (2009-11-14 00:44:07 UTC) #3
Evan Stade
updated after conversation with Eric.
11 years, 1 month ago (2009-11-14 02:15:27 UTC) #4
jam
http://codereview.chromium.org/387055/diff/3002/4003 File chrome/browser/spellcheck_host.h (right): http://codereview.chromium.org/387055/diff/3002/4003#newcode114 Line 114: // it is only valid to use it ...
11 years, 1 month ago (2009-11-14 02:24:47 UTC) #5
Evan Stade
http://codereview.chromium.org/387055/diff/3002/4003 File chrome/browser/spellcheck_host.h (right): http://codereview.chromium.org/387055/diff/3002/4003#newcode114 Line 114: // it is only valid to use it ...
11 years, 1 month ago (2009-11-14 02:34:23 UTC) #6
eroman
Right. Since the file thread is stopped AFTER the IO thread, and the release is ...
11 years, 1 month ago (2009-11-14 02:36:19 UTC) #7
jam
On 2009/11/14 02:36:19, eroman wrote: > Right. > > Since the file thread is stopped ...
11 years, 1 month ago (2009-11-14 02:42:44 UTC) #8
eroman
Well in this case leaks can lead to other problems. For example, since outstanding certificate ...
11 years, 1 month ago (2009-11-14 03:16:17 UTC) #9
Evan Stade
so is that a lgtm?
11 years, 1 month ago (2009-11-16 20:36:12 UTC) #10
eroman
lgtm
11 years, 1 month ago (2009-11-16 21:20:08 UTC) #11
darin (slow to review)
11 years, 1 month ago (2009-11-16 22:08:37 UTC) #12
http://codereview.chromium.org/387055/diff/4008/4009
File chrome/browser/spellcheck_host.cc (right):

http://codereview.chromium.org/387055/diff/4008/4009#newcode220
Line 220: } else {
nit: no need for else after return

Powered by Google App Engine
This is Rietveld 408576698