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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp

Issue 2744603004: Correct the activation of idle time spell checker on document attach (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallbackTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dc8def1b5e6fb6ce551a337b98ed37b4ad57290d..bfe78748063fe57a1159f5c7b923fcdb9bae2268 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
@@ -246,6 +246,7 @@ bool IdleSpellCheckCallback::coldModeFinishesFullDocument() const {
}
void IdleSpellCheckCallback::handleEvent(IdleDeadline* deadline) {
+ DCHECK(RuntimeEnabledFeatures::idleTimeSpellCheckingEnabled());
DCHECK(frame().document());
DCHECK(frame().document()->isActive());
DCHECK_NE(m_idleCallbackHandle, kInvalidHandle);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallbackTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698