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

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

Issue 2740603003: Hide SpellCheckRequest from other classes in editing/spellcheck (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
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..cf0f670b08af7900f5157e453b2fa292417ef904 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp
@@ -173,8 +173,7 @@ void IdleSpellCheckCallback::chunkAndRequestFullCheckingFor(
// Check the full content if it is short.
if (fullLength <= kColdModeChunkSize) {
- SpellCheckRequest* fullRequest = SpellCheckRequest::create(fullRange);
- spellCheckRequester().requestCheckingFor(fullRequest);
+ spellCheckRequester().requestCheckingFor(fullRange);
return;
}
@@ -195,9 +194,7 @@ void IdleSpellCheckCallback::chunkAndRequestFullCheckingFor(
chunkIndex >= 1 ? expandEndToSentenceBoundary(chunkRange)
: expandRangeToSentenceBoundary(chunkRange);
- SpellCheckRequest* chunkRequest =
- SpellCheckRequest::create(checkRange, chunkIndex);
- spellCheckRequester().requestCheckingFor(chunkRequest);
+ spellCheckRequester().requestCheckingFor(checkRange, chunkIndex);
chunkStart = checkRange.endPosition();
}

Powered by Google App Engine
This is Rietveld 408576698