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

Unified Diff: chrome/renderer/spellchecker/spellcheck_provider.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
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.h ('k') | components/test_runner/spell_check_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck_provider.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_provider.cc b/chrome/renderer/spellchecker/spellcheck_provider.cc
index 53b30a9584f392be8d85377d1a85b8d619030859..d81f9b161c8519219d48cecea4eef513ce6876b1 100644
--- a/chrome/renderer/spellchecker/spellcheck_provider.cc
+++ b/chrome/renderer/spellchecker/spellcheck_provider.cc
@@ -175,6 +175,14 @@ void SpellCheckProvider::requestCheckingOfText(
UMA_HISTOGRAM_COUNTS("SpellCheck.api.async", text.length());
}
+void SpellCheckProvider::cancelAllPendingRequests() {
+ for (WebTextCheckCompletions::iterator iter(&text_check_completions_);
+ !iter.IsAtEnd(); iter.Advance()) {
+ iter.GetCurrentValue()->didCancelCheckingText();
+ }
+ text_check_completions_.Clear();
+}
+
void SpellCheckProvider::showSpellingUI(bool show) {
#if defined(USE_BROWSER_SPELLCHECKER)
UMA_HISTOGRAM_BOOLEAN("SpellCheck.api.showUI", show);
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.h ('k') | components/test_runner/spell_check_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698