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

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

Issue 2612713002: Move core/editing timer to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 12 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 6e5195e3d96dea6e22b63fc8735a2f761bb39045..7230ffffd5ee867855661bf9b1c5572e84496107 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
@@ -5,6 +5,7 @@
#include "core/editing/spellcheck/IdleSpellCheckCallback.h"
#include "core/dom/IdleRequestOptions.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/editing/EditingUtilities.h"
#include "core/editing/FrameSelection.h"
#include "core/editing/VisibleSelection.h"
@@ -47,7 +48,9 @@ IdleSpellCheckCallback* IdleSpellCheckCallback::create(LocalFrame& frame) {
IdleSpellCheckCallback::IdleSpellCheckCallback(LocalFrame& frame)
: m_state(State::kInactive),
m_frame(frame),
- m_coldModeTimer(this, &IdleSpellCheckCallback::coldModeTimerFired) {}
+ m_coldModeTimer(TaskRunnerHelper::get(TaskType::UnspecedTimer, &frame),
+ this,
+ &IdleSpellCheckCallback::coldModeTimerFired) {}
SpellCheckRequester& IdleSpellCheckCallback::spellCheckRequester() const {
// TODO(xiaochengh): decouple with SpellChecker after SpellCheckRequester is

Powered by Google App Engine
This is Rietveld 408576698