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

Unified Diff: components/spellcheck/browser/spelling_service_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: components/spellcheck/browser/spelling_service_client.cc
diff --git a/components/spellcheck/browser/spelling_service_client.cc b/components/spellcheck/browser/spelling_service_client.cc
index 86eda34d958087bcc5143450a18ca81e12f3002c..6a46d315df0baa5339931a6e7f7a4a994741ce40 100644
--- a/components/spellcheck/browser/spelling_service_client.cc
+++ b/components/spellcheck/browser/spelling_service_client.cc
@@ -271,7 +271,7 @@ bool SpellingServiceClient::ParseResponse(
return false;
}
SpellCheckResult result(SpellCheckResult::SPELLING, start, length,
- replacement);
+ std::vector<base::string16>({replacement}));
results->push_back(result);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698