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

Unified Diff: third_party/WebKit/Source/web/WebLeakDetector.cpp

Issue 2714113003: Move ownership of IdleSpellCheckCallback from LocalFrame to SpellChecker (Closed)
Patch Set: Fri Feb 24 11:06:25 PST 2017 Created 3 years, 10 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 | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLeakDetector.cpp
diff --git a/third_party/WebKit/Source/web/WebLeakDetector.cpp b/third_party/WebKit/Source/web/WebLeakDetector.cpp
index 9efed0563efa01e28d5347b87af67ee288259e5c..ada00b4af7242e2d0e95b94f1f8109a9c070b64f 100644
--- a/third_party/WebKit/Source/web/WebLeakDetector.cpp
+++ b/third_party/WebKit/Source/web/WebLeakDetector.cpp
@@ -31,7 +31,6 @@
#include "public/web/WebLeakDetector.h"
#include "bindings/core/v8/V8GCController.h"
-#include "core/editing/spellcheck/IdleSpellCheckCallback.h"
#include "core/editing/spellcheck/SpellChecker.h"
#include "core/workers/InProcessWorkerMessagingProxy.h"
#include "core/workers/WorkerThread.h"
@@ -102,10 +101,7 @@ void WebLeakDetectorImpl::prepareForLeakDetection(WebFrame* frame) {
// Stop the spellchecker to prevent this.
if (frame->isWebLocalFrame()) {
WebLocalFrameImpl* localFrame = toWebLocalFrameImpl(frame);
- if (RuntimeEnabledFeatures::idleTimeSpellCheckingEnabled())
- localFrame->frame()->idleSpellCheckCallback().prepareForLeakDetection();
- else
- localFrame->frame()->spellChecker().prepareForLeakDetection();
+ localFrame->frame()->spellChecker().prepareForLeakDetection();
}
// FIXME: HTML5 Notification should be closed because notification affects the
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698