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

Unified Diff: components/test_runner/spell_check_client.cc

Issue 2226833003: Make WebSpellCheckClient aware of leak detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SpellCheckerDebugInfo
Patch Set: Minor style fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/test_runner/spell_check_client.cc
diff --git a/components/test_runner/spell_check_client.cc b/components/test_runner/spell_check_client.cc
index 68c663aa0a4c5763b5188bd66a62cccca9e0bf6d..6c8ad245e53d5b3ad03a2b4e35a956572ebff3f6 100644
--- a/components/test_runner/spell_check_client.cc
+++ b/components/test_runner/spell_check_client.cc
@@ -96,6 +96,13 @@ void SpellCheckClient::requestCheckingOfText(
0);
}
+void SpellCheckClient::cancelAllPendingRequests() {
+ if (!last_requested_text_checking_completion_)
+ return;
+ last_requested_text_checking_completion_->didCancelCheckingText();
+ last_requested_text_checking_completion_ = nullptr;
+}
+
void SpellCheckClient::FinishLastTextCheck() {
if (!last_requested_text_checking_completion_)
return;
« no previous file with comments | « components/test_runner/spell_check_client.h ('k') | third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698