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

Issue 2978823002: [SelectMiss...Async #2] Change ContextMenuClient::SelectMisspellingAsync() to return pair of strings (Closed)

Created:
3 years, 5 months ago by rlanday
Modified:
3 years, 5 months ago
Reviewers:
tkent, yosin_UTC9, Xiaocheng
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, timvolodine, Xiaocheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -13 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 3 4 5 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/page/ContextMenuClient.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (20 generated)
rlanday
Note: this is a follow-up to this CL: https://codereview.chromium.org/2966223003
3 years, 5 months ago (2017-07-12 19:55:53 UTC) #2
yosin_UTC9
https://codereview.chromium.org/2978823002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2978823002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode915 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:915: return Optional<std::pair<String, String>>(); I think we write |return {};| ...
3 years, 5 months ago (2017-07-20 01:00:54 UTC) #3
rlanday
Updated https://codereview.chromium.org/2978823002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2978823002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode915 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:915: return Optional<std::pair<String, String>>(); On 2017/07/20 at 01:00:54, yosin_UTC9 ...
3 years, 5 months ago (2017-07-20 21:14:28 UTC) #6
rlanday
https://codereview.chromium.org/2978823002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2978823002/diff/1/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode915 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:915: return Optional<std::pair<String, String>>(); I've updated this CL to return ...
3 years, 5 months ago (2017-07-20 23:37:07 UTC) #9
yosin_UTC9
lgtm
3 years, 5 months ago (2017-07-21 00:59:43 UTC) #14
rlanday
Adding tkent@ for OWNER review of third_party/WebKit/Source/core/page/ContextMenuClient.cpp
3 years, 5 months ago (2017-07-24 18:29:25 UTC) #20
tkent
lgtm
3 years, 5 months ago (2017-07-24 23:14:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2978823002/80001
3 years, 5 months ago (2017-07-24 23:24:10 UTC) #26
commit-bot: I haz the power
3 years, 5 months ago (2017-07-24 23:28:36 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4a07e22a932cb25cc338f6c10f6d...

Powered by Google App Engine
This is Rietveld 408576698