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

Issue 2494123002: Spellcheck : Fix caching in cases where text is deleted. (Closed)

Created:
4 years, 1 month ago by timvolodine
Modified:
4 years ago
Reviewers:
groby-ooo-7-16
CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org, timvolodine
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Spellcheck : Fix caching in cases where text is deleted. This patch fixes spellcheck caching in the following case: 1. paragraph is edited by removing text from the back and 2. paragraph does not contain misspelled words. Currently this case results in a cache miss and consequently spellcheck requests being sent to the spellchecking service while completely unnecessary. This fix applies to all platforms. This patch also adds a few unit tests for the relevant caching specific behavior. BUG=664247, 629609 Committed: https://crrev.com/cb1e0169211135db1dd2e0220434bcec2efd7f16 Cr-Commit-Position: refs/heads/master@{#434710}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address Rachel's comments #

Patch Set 3 : actually add the unittest file #

Total comments: 2

Patch Set 4 : address comments #

Patch Set 5 : rebase + fix year #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -11 lines) Patch
M components/spellcheck/renderer/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider.cc View 1 1 chunk +4 lines, -11 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider_test.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider_test.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
A components/spellcheck/renderer/spellcheck_provider_unittest.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (30 generated)
timvolodine
4 years, 1 month ago (2016-11-11 16:20:11 UTC) #6
groby-ooo-7-16
Could you possibly add some unit tests that cover the cases your description mentions? Thank ...
4 years, 1 month ago (2016-11-15 19:36:57 UTC) #7
timvolodine
Thanks for the comments! Added unit tests, replies below.. PTAL https://codereview.chromium.org/2494123002/diff/1/components/spellcheck/renderer/spellcheck_provider.cc File components/spellcheck/renderer/spellcheck_provider.cc (right): https://codereview.chromium.org/2494123002/diff/1/components/spellcheck/renderer/spellcheck_provider.cc#newcode332 ...
4 years, 1 month ago (2016-11-17 20:53:15 UTC) #15
groby-ooo-7-16
LGTM w/ naming nit https://codereview.chromium.org/2494123002/diff/40001/components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc File components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc (right): https://codereview.chromium.org/2494123002/diff/40001/components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc#newcode1 components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc:1: // Copyright 2015 The Chromium ...
4 years ago (2016-11-23 19:49:06 UTC) #18
timvolodine
Thanks for the review! https://codereview.chromium.org/2494123002/diff/40001/components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc File components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc (right): https://codereview.chromium.org/2494123002/diff/40001/components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc#newcode1 components/spellcheck/renderer/spellcheck_provider_cache_unittest.cc:1: // Copyright 2015 The Chromium ...
4 years ago (2016-11-28 18:48:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2494123002/80001
4 years ago (2016-11-28 18:48:58 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2494123002/80001
4 years ago (2016-11-28 19:07:04 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-28 20:29:04 UTC) #37
commit-bot: I haz the power
4 years ago (2016-11-28 20:32:37 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cb1e0169211135db1dd2e0220434bcec2efd7f16
Cr-Commit-Position: refs/heads/master@{#434710}

Powered by Google App Engine
This is Rietveld 408576698