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

Unified Diff: content/shell/test_runner/mock_spell_check.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/mock_spell_check.cc
diff --git a/content/shell/test_runner/mock_spell_check.cc b/content/shell/test_runner/mock_spell_check.cc
index 141dc40997d876744d04101a92871b3ee0557df8..52c7bcad6ea4efcf7057a2a4082bd00a78101f92 100644
--- a/content/shell/test_runner/mock_spell_check.cc
+++ b/content/shell/test_runner/mock_spell_check.cc
@@ -114,12 +114,12 @@ bool MockSpellCheck::IsMultiWordMisspelling(
const blink::WebString& text,
std::vector<blink::WebTextCheckingResult>* results) {
if (text == "Helllo wordl.") {
- results->push_back(blink::WebTextCheckingResult(
- blink::kWebTextDecorationTypeSpelling, 0, 6,
- std::vector<blink::WebString>({"Hello"})));
- results->push_back(blink::WebTextCheckingResult(
- blink::kWebTextDecorationTypeSpelling, 7, 5,
- std::vector<blink::WebString>({"world"})));
+ results->push_back(
+ blink::WebTextCheckingResult(blink::kWebTextDecorationTypeSpelling, 0,
+ 6, blink::WebString("Hello")));
+ results->push_back(
+ blink::WebTextCheckingResult(blink::kWebTextDecorationTypeSpelling, 7,
+ 5, blink::WebString("world")));
return true;
}
return false;
« no previous file with comments | « components/spellcheck/renderer/spellcheck_unittest.cc ('k') | content/shell/test_runner/spell_check_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698