DescriptionChange ContextMenuClient::SelectMisspellingAsync() to return pair of strings
Currently this method returns a String that holds the text marked by the
spelling/grammar marker, and also takes a reference to a String as a param and
uses it to return the value of the marker's Description field.
This CL changes this method to eliminate the String& param and instead return
Optional<std::pair<String, String>> to improve code health.
BUG=
Review-Url: https://codereview.chromium.org/2978823002
Cr-Commit-Position: refs/heads/master@{#489139}
Committed: https://chromium.googlesource.com/chromium/src/+/4a07e22a932cb25cc338f6c10f6d04932ef95bd9
Patch Set 1 #
Total comments: 4
Patch Set 2 : Return std::pair, not Optional<std::pair> #Patch Set 3 : Return {} #Patch Set 4 : Rebase #Patch Set 5 : Rebase #
Depends on Patchset: Messages
Total messages: 29 (20 generated)
|