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

Issue 155394: [chromium-reviews] For system-level installs, if the spellcheck dictionary fails to get download... (Closed)

Created:
11 years, 5 months ago by sidchat (Google)
Modified:
9 years, 7 months ago
Reviewers:
kuchhal, brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

For system-level installs, if the spellcheck dictionary fails to get downloaded in the profile Application directory, download it in the User Data directory instead. BUG=http://www.crbug.com/9650 TEST=Launch Chrome, and navigate to translate.google.com. Before typing anything in the text box, change name of folder Chrome/Application/Dictionaries to something else. Then, start typing something. The spellcheck dictionary, unable to get the folder Dictionaries, will fail to download, which will trigger its download in Chrome/User Data/Dictionaries. After it has downloaded, spellchecker will start working automatically. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20995

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 6

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -31 lines) Patch
M chrome/browser/spellchecker.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/spellchecker.cc View 1 2 3 4 5 6 7 8 8 chunks +81 lines, -26 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sidchat (Google)
11 years, 5 months ago (2009-07-10 23:21:16 UTC) #1
brettw
http://codereview.chromium.org/155394/diff/4/1006 File chrome/browser/spellchecker.cc (right): http://codereview.chromium.org/155394/diff/4/1006#newcode465 Line 465: if (!file_util::PathExists(bdict_file_name_)) { I don't think I understand ...
11 years, 5 months ago (2009-07-13 17:04:02 UTC) #2
sidchat (Google)
Made changes as per your comments - please have a look again. -Sid http://codereview.chromium.org/155394/diff/4/1006 File ...
11 years, 5 months ago (2009-07-13 18:06:58 UTC) #3
brettw
I don't see how you addressed my comment. What happens when the dictionary has been ...
11 years, 5 months ago (2009-07-13 20:09:30 UTC) #4
sidchat (Google)
> I don't see how you addressed my comment. What happens when the dictionary has ...
11 years, 5 months ago (2009-07-13 20:41:16 UTC) #5
sidchat (Google)
OK, so now both directories are checked before attempting to download the file. Please have ...
11 years, 5 months ago (2009-07-13 21:51:28 UTC) #6
brettw
Okay, I think that bug is addressed. I'm now concerned that you will have to ...
11 years, 5 months ago (2009-07-13 21:55:43 UTC) #7
sidchat (Google)
> Okay, I think that bug is addressed. I'm now concerned that you will have ...
11 years, 5 months ago (2009-07-13 22:31:46 UTC) #8
sidchat (Google)
Hmm OK. Offline chat with Rahulk reveals that "user data" folder is always available for ...
11 years, 5 months ago (2009-07-13 22:44:38 UTC) #9
sidchat (Google)
OK, so now the download occurs only once. From the memory, check to see whether ...
11 years, 5 months ago (2009-07-13 23:33:40 UTC) #10
brettw
http://codereview.chromium.org/155394/diff/1032/18 File chrome/browser/spellchecker.cc (right): http://codereview.chromium.org/155394/diff/1032/18#newcode297 Line 297: if (!SaveBufferToFile(data)) { This seems weird. You call ...
11 years, 5 months ago (2009-07-15 20:33:08 UTC) #11
sidchat (Google)
Please have a look again -Sid http://codereview.chromium.org/155394/diff/1032/18 File chrome/browser/spellchecker.cc (right): http://codereview.chromium.org/155394/diff/1032/18#newcode297 Line 297: if (!SaveBufferToFile(data)) ...
11 years, 5 months ago (2009-07-16 21:47:35 UTC) #12
brettw
11 years, 5 months ago (2009-07-17 17:43:03 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698