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

Unified Diff: content/shell/test_runner/spell_check_client.cc

Issue 2848943002: Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Created 3 years, 8 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: content/shell/test_runner/spell_check_client.cc
diff --git a/content/shell/test_runner/spell_check_client.cc b/content/shell/test_runner/spell_check_client.cc
index e1908110023fcc8a2cf61e7262819d5a1d0190c0..19ed128bc7b05dca4d31e08a1308626702e77b37 100644
--- a/content/shell/test_runner/spell_check_client.cc
+++ b/content/shell/test_runner/spell_check_client.cc
@@ -114,8 +114,7 @@ void SpellCheckClient::FinishLastTextCheck() {
&suggestions);
results.push_back(blink::WebTextCheckingResult(
blink::kWebTextDecorationTypeSpelling, offset + misspelled_position,
- misspelled_length,
- suggestions.IsEmpty() ? blink::WebString() : suggestions[0]));
+ misspelled_length, suggestions));
text = text.substr(misspelled_position + misspelled_length);
offset += misspelled_position + misspelled_length;
}

Powered by Google App Engine
This is Rietveld 408576698