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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.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
Index: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
index 7230ffffd5ee867855661bf9b1c5572e84496107..cfdac39e20df07ff345af77fa7bca31e3b0871a5 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
@@ -53,21 +53,13 @@ IdleSpellCheckCallback::IdleSpellCheckCallback(LocalFrame& frame)
&IdleSpellCheckCallback::coldModeTimerFired) {}
SpellCheckRequester& IdleSpellCheckCallback::spellCheckRequester() const {
- // TODO(xiaochengh): decouple with SpellChecker after SpellCheckRequester is
- // moved to IdleSpellCheckCallback.
return frame().spellChecker().spellCheckRequester();
}
bool IdleSpellCheckCallback::isSpellCheckingEnabled() const {
- // TODO(xiaochengh): decouple with SpellChecker.
return frame().spellChecker().isSpellCheckingEnabled();
}
-void IdleSpellCheckCallback::prepareForLeakDetection() {
- if (RuntimeEnabledFeatures::idleTimeSpellCheckingEnabled())
- spellCheckRequester().prepareForLeakDetection();
-}
-
void IdleSpellCheckCallback::requestInvocation() {
IdleRequestOptions options;
options.setTimeout(kRequestTimeoutMS);

Powered by Google App Engine
This is Rietveld 408576698