Index: chrome/browser/spellchecker/spelling_service_client_unittest.cc |
diff --git a/chrome/browser/spellchecker/spelling_service_client_unittest.cc b/chrome/browser/spellchecker/spelling_service_client_unittest.cc |
index a90ea29f7d0f107f7da0c70b0c8febaf8a3bff23..e87056cee0b5383a4f4579df6969b26b4b57261c 100644 |
--- a/chrome/browser/spellchecker/spelling_service_client_unittest.cc |
+++ b/chrome/browser/spellchecker/spelling_service_client_unittest.cc |
@@ -160,7 +160,7 @@ class TestingSpellingServiceClient : public SpellingServiceClient { |
base::string16 text(base::UTF8ToUTF16(sanitized_request_text_)); |
for (std::vector<SpellCheckResult>::const_iterator it = results.begin(); |
it != results.end(); ++it) { |
- text.replace(it->location, it->length, it->replacement); |
+ text.replace(it->location, it->length, it->replacements[0]); |
} |
EXPECT_EQ(corrected_text_, text); |
} |