| Index: third_party/WebKit/Source/web/WebTextCheckingResult.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebTextCheckingResult.cpp b/third_party/WebKit/Source/web/WebTextCheckingResult.cpp
|
| index fa6ff49af3d324623bb2babf3786174c559e6073..bf18da766822ee26728d3a8019acba9dda0fac97 100644
|
| --- a/third_party/WebKit/Source/web/WebTextCheckingResult.cpp
|
| +++ b/third_party/WebKit/Source/web/WebTextCheckingResult.cpp
|
| @@ -39,12 +39,18 @@ WebTextCheckingResult::operator TextCheckingResult() const {
|
| result.decoration = static_cast<TextDecorationType>(decoration);
|
| result.location = location;
|
| result.length = length;
|
| - result.replacement = replacement;
|
| +
|
| + Vector<String> replacements_vec;
|
| + for (const WebString& replacement : replacements) {
|
| + replacements_vec.push_back(replacement);
|
| + }
|
| + result.replacements = replacements_vec;
|
| +
|
| if (result.decoration == kTextDecorationTypeGrammar) {
|
| GrammarDetail detail;
|
| detail.location = 0;
|
| detail.length = length;
|
| - detail.user_description = replacement;
|
| + detail.user_description = replacements.empty() ? "" : replacements[0];
|
| result.details.push_back(detail);
|
| }
|
|
|
|
|