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

Issue 10533077: Implement a request cache and disble retrieving a sub-region. (Closed)

Created:
8 years, 6 months ago by Hironori Bono
Modified:
8 years, 6 months ago
Reviewers:
Hajime Morrita
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Implement a request cache and disble retrieving a sub-region. SpellCheck::RequestTextChecking() adds spelling markers to a wrong place when its offset parameter is not 0. To temporarily avoid this problem, this change sends the whole text given by WebKit if SpellCheckProvider::RequestTextChecking() sends a spellcheck request. Also, this change caches the last request and its response to avoid sending unnecessary spellcheck requests. BUG=131613 TEST=SpellCheckProviderTest.MultiLineText Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141608

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -70 lines) Patch
M chrome/browser/spellchecker/spelling_service_client.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider.h View 2 chunks +7 lines, -10 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider.cc View 1 2 chunks +61 lines, -53 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc View 3 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Hironori Bono
8 years, 6 months ago (2012-06-11 06:32:30 UTC) #1
Hajime Morrita
The approach looks good. I added some nitpicking comments. http://codereview.chromium.org/10533077/diff/1/chrome/renderer/spellchecker/spellcheck_provider.cc File chrome/renderer/spellchecker/spellcheck_provider.cc (right): http://codereview.chromium.org/10533077/diff/1/chrome/renderer/spellchecker/spellcheck_provider.cc#newcode112 chrome/renderer/spellchecker/spellcheck_provider.cc:112: ...
8 years, 6 months ago (2012-06-11 06:53:21 UTC) #2
Hironori Bono
Morita-san, Thanks for your quick review and comments. I have added a TODO comment for ...
8 years, 6 months ago (2012-06-11 07:24:14 UTC) #3
Hajime Morrita
8 years, 6 months ago (2012-06-11 08:28:39 UTC) #4
got it. lgtm them.

Powered by Google App Engine
This is Rietveld 408576698