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

Issue 2226833003: Make WebSpellCheckClient aware of leak detection (Closed)

Created:
4 years, 4 months ago by Xiaocheng
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, groby+blinkspell_chromium.org, groby+spellwatch_chromium.org, Nate Chapin, jochen+watch_chromium.org, kinuko+watch, loading-reviews_chromium.org, mlamouri+watch-test-runner_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@SpellCheckerDebugInfo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebSpellCheckClient aware of leak detection WebSpellCheckClient stores a set of WebTextCheckingCompletion objects, which may store references to already invoked SpellCheckRequests. This patch clears these references before a leak detection so that they will not become a leak source. This CL is a preparation for https://codereview.chromium.org/2224103003 BUG=633509 TEST=n/a; no visible change Committed: https://crrev.com/8fcbc602fb75514f4270b86377009cd787c24222 Cr-Commit-Position: refs/heads/master@{#410969}

Patch Set 1 #

Patch Set 2 : Fix compile error #

Patch Set 3 : Use didCancelCheckingText to clear #

Total comments: 2

Patch Set 4 : Rename to cancelAllPendingRequests #

Total comments: 4

Patch Set 5 : Minor style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M chrome/renderer/spellchecker/spellcheck_provider.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M components/test_runner/spell_check_client.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/spell_check_client.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextCheckerClient.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/SpellCheckerClientImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSpellCheckClient.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
Xiaocheng
PTAL. The background story is that I tried to make unified text checker enabled by ...
4 years, 4 months ago (2016-08-09 15:32:18 UTC) #11
please use gerrit instead
https://codereview.chromium.org/2226833003/diff/40001/chrome/renderer/spellchecker/spellcheck_provider.cc File chrome/renderer/spellchecker/spellcheck_provider.cc (right): https://codereview.chromium.org/2226833003/diff/40001/chrome/renderer/spellchecker/spellcheck_provider.cc#newcode178 chrome/renderer/spellchecker/spellcheck_provider.cc:178: void SpellCheckProvider::prepareForLeakDetection() { Let's use a name that better ...
4 years, 4 months ago (2016-08-09 16:47:57 UTC) #14
Xiaocheng
Thanks and PTAL at Patch 4. https://codereview.chromium.org/2226833003/diff/40001/chrome/renderer/spellchecker/spellcheck_provider.cc File chrome/renderer/spellchecker/spellcheck_provider.cc (right): https://codereview.chromium.org/2226833003/diff/40001/chrome/renderer/spellchecker/spellcheck_provider.cc#newcode178 chrome/renderer/spellchecker/spellcheck_provider.cc:178: void SpellCheckProvider::prepareForLeakDetection() { ...
4 years, 4 months ago (2016-08-10 01:14:47 UTC) #15
tkent
third_party/WebKit lgtm
4 years, 4 months ago (2016-08-10 01:33:52 UTC) #18
tkent
test_runner too :)
4 years, 4 months ago (2016-08-10 01:34:10 UTC) #19
yosin_UTC9
lgtm https://codereview.chromium.org/2226833003/diff/60001/chrome/renderer/spellchecker/spellcheck_provider.cc File chrome/renderer/spellchecker/spellcheck_provider.cc (right): https://codereview.chromium.org/2226833003/diff/60001/chrome/renderer/spellchecker/spellcheck_provider.cc#newcode180 chrome/renderer/spellchecker/spellcheck_provider.cc:180: !iter.IsAtEnd(); iter.Advance()) nit: We should have brace "{}" ...
4 years, 4 months ago (2016-08-10 01:34:34 UTC) #20
please use gerrit instead
chrome/renderer/spellchecker/spellcheck_provider.* lgtm
4 years, 4 months ago (2016-08-10 01:35:21 UTC) #21
Xiaocheng
Thanks a lot for the review! I'm committing Patch 5 directly as it only fixes ...
4 years, 4 months ago (2016-08-10 01:45:33 UTC) #23
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/2226833003/80001
4 years, 4 months ago (2016-08-10 01:46:49 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/119454)
4 years, 4 months ago (2016-08-10 03:00:37 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/2226833003/80001
4 years, 4 months ago (2016-08-10 04:34:23 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-10 05:45:06 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 05:47:13 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8fcbc602fb75514f4270b86377009cd787c24222
Cr-Commit-Position: refs/heads/master@{#410969}

Powered by Google App Engine
This is Rietveld 408576698