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

Issue 165175: [chromium-reviews] Fix a spell check dictionary download bug, where killing the spell checker wh... (Closed)

Created:
11 years, 4 months ago by sidchat (Google)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Fix a spell check dictionary download bug, where killing the spell checker while downloading the dictionary leads to a crash. This is happening for my auto-language detection feature, which sometimes kills a spellchecker while it is downloading a dictionary file. Hopefully, this is also a fix for BUG 18743. BUG=www.crbug.com/18743 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23048

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -192 lines) Patch
M chrome/browser/spellchecker.h View 1 2 3 10 chunks +20 lines, -21 lines 2 comments Download
M chrome/browser/spellchecker.cc View 1 2 3 6 chunks +51 lines, -171 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sidchat (Google)
Peter suggested that hunspell initialization can be moved to file thread after callback from url ...
11 years, 4 months ago (2009-08-07 23:04:28 UTC) #1
Peter Kasting
This change would be fine except it needs to untangle what I think was too ...
11 years, 4 months ago (2009-08-07 23:14:24 UTC) #2
sidchat (Google)
OK, completely destroyed the rat's nest - tested by randomly changing spellcheck language and typing ...
11 years, 4 months ago (2009-08-08 00:00:34 UTC) #3
Peter Kasting
Dramatically better. Comments below. http://codereview.chromium.org/165175/diff/1008/8 File chrome/browser/spellchecker.cc (right): http://codereview.chromium.org/165175/diff/1008/8#newcode92 Line 92: return file_util::WriteFile(file_to_write, data.data(), num_bytes) ...
11 years, 4 months ago (2009-08-08 00:20:03 UTC) #4
sidchat (Google)
Right - so I removed the set_file_is_downloading() function. I set a TODO for save-to-disk in ...
11 years, 4 months ago (2009-08-10 18:34:59 UTC) #5
Peter Kasting
http://codereview.chromium.org/165175/diff/1011/1013 File chrome/browser/spellchecker.h (right): http://codereview.chromium.org/165175/diff/1011/1013#newcode115 Line 115: // URL Fetcher delegate implementation. Nit: I suggest ...
11 years, 4 months ago (2009-08-10 22:25:43 UTC) #6
Peter Kasting
11 years, 4 months ago (2009-08-10 22:25:59 UTC) #7
BTW, LGTM, forgot that bit.

Powered by Google App Engine
This is Rietveld 408576698