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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2226833003: Make WebSpellCheckClient aware of leak detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SpellCheckerDebugInfo
Patch Set: Use didCancelCheckingText to clear 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: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index a881cd8ec2ae8b71dc132bd296ab5bd937ac4212..ef89d08fcb3a3cfc6c5bf8b52c329e79ff03986e 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -5266,6 +5266,14 @@ public:
m_completion = completion;
}
+ void prepareForLeakDetection() override
+ {
+ if (!m_completion)
+ return;
+ m_completion->didCancelCheckingText();
+ m_completion = nullptr;
+ }
+
void kickNoResults()
{
kick(-1, -1, WebTextDecorationTypeSpelling);

Powered by Google App Engine
This is Rietveld 408576698