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

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

Issue 2906243002: Revert of Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Revert "Allow storing multiple replacements on SpellCheckResult" Created 3 years, 7 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 19ed128bc7b05dca4d31e08a1308626702e77b37..e1908110023fcc8a2cf61e7262819d5a1d0190c0 100644
--- a/content/shell/test_runner/spell_check_client.cc
+++ b/content/shell/test_runner/spell_check_client.cc
@@ -114,7 +114,8 @@ void SpellCheckClient::FinishLastTextCheck() {
&suggestions);
results.push_back(blink::WebTextCheckingResult(
blink::kWebTextDecorationTypeSpelling, offset + misspelled_position,
- misspelled_length, suggestions));
+ misspelled_length,
+ suggestions.IsEmpty() ? blink::WebString() : suggestions[0]));
text = text.substr(misspelled_position + misspelled_length);
offset += misspelled_position + misspelled_length;
}
« no previous file with comments | « content/shell/test_runner/mock_spell_check.cc ('k') | third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698