| Index: third_party/WebKit/Source/core/page/ContextMenuClient.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/ContextMenuClient.cpp b/third_party/WebKit/Source/core/page/ContextMenuClient.cpp
|
| index 71e3a4d031c23c7e0d86bc8af6a34f2f5617ca6d..5b9fb7070f7459a0115a6315953bf55e1c7a80dd 100644
|
| --- a/third_party/WebKit/Source/core/page/ContextMenuClient.cpp
|
| +++ b/third_party/WebKit/Source/core/page/ContextMenuClient.cpp
|
| @@ -360,9 +360,10 @@ bool ContextMenuClient::ShowContextMenu(const ContextMenu* default_menu,
|
| // suggestions to these markers in the background. Therefore, when a
|
| // user right-clicks a mouse on a word, Chrome just needs to find a
|
| // spelling marker on the word instead of spellchecking it.
|
| - String description;
|
| - data.misspelled_word =
|
| - selected_frame->GetSpellChecker().SelectMisspellingAsync(description);
|
| + std::pair<String, String> misspelled_word_and_description =
|
| + selected_frame->GetSpellChecker().SelectMisspellingAsync();
|
| + data.misspelled_word = misspelled_word_and_description.first;
|
| + const String& description = misspelled_word_and_description.second;
|
| if (description.length()) {
|
| Vector<String> suggestions;
|
| description.Split('\n', suggestions);
|
|
|