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

Issue 2904993002: Call IdleSpellCheckCallback::Deactivate() in PrepareForLeakDetection() (Closed)

Created:
3 years, 7 months ago by hiroshige
Modified:
3 years, 6 months ago
CC:
Xiaocheng, blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Call IdleSpellCheckCallback::Deactivate() in PrepareForLeakDetection() IdleSpellCheckCallback's cold mode timer can be fired and thus ScriptedIdleTaskController can be created after PrepareForLeakDetection() before leak detection, causing ScriptedIdleTaskController to be reported as leaking. This CL fixes this by calling Deactivate(). Tests for this issue is not included because this is quite timing-dependent and is hard to reproduce reliably. BUG=718114 Review-Url: https://codereview.chromium.org/2904993002 Cr-Commit-Position: refs/heads/master@{#475302} Committed: https://chromium.googlesource.com/chromium/src/+/7b01675740f7b8841d4b59c4a35b517bb19dd401

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add runtime flag guard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
hiroshige
PTAL.
3 years, 7 months ago (2017-05-26 21:12:24 UTC) #8
Xiaocheng
Thanks for the patch! https://codereview.chromium.org/2904993002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2904993002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode1081 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:1081: idle_spell_check_callback_->Deactivate(); Please guard this line ...
3 years, 7 months ago (2017-05-26 21:15:11 UTC) #9
hiroshige
https://codereview.chromium.org/2904993002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2904993002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode1081 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:1081: idle_spell_check_callback_->Deactivate(); On 2017/05/26 21:15:09, Xiaocheng wrote: > Please guard ...
3 years, 7 months ago (2017-05-26 21:40:03 UTC) #12
Xiaocheng
Thanks, lgtm. I'm not an owner of this directory. Please find an owner for approval...
3 years, 7 months ago (2017-05-26 22:22:06 UTC) #13
kouhei (in TOK)
lgtm core lgtm
3 years, 6 months ago (2017-05-29 05:30:01 UTC) #18
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/2904993002/20001
3 years, 6 months ago (2017-05-29 05:30:17 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 07:02:23 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7b01675740f7b8841d4b59c4a35b...

Powered by Google App Engine
This is Rietveld 408576698