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

Issue 2570193002: Rename OnError to OnErrorAdapter and OnSuccess to OnSucessAdapter. (Closed)

Created:
4 years ago by Łukasz Anforowicz
Modified:
4 years ago
Reviewers:
haraken, esprehn, dcheng
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename OnError to OnErrorAdapter and OnSuccess to OnSucessAdapter. The rename is needed to avoid a naming collision after changing from Blink to Chromium naming style. Right now we have an |OnError| type and an |onError| virtual method (differing by case of the first character); after a naive rename by the rewrite_to_chrome_style tool we would end up with |OnError| being the name of both the type and the method (with both living in the same namespace). Similar situation happens for onSuccess / OnSuccess names. Changing the type name is a workaround that fits into the guidance on the recommended post-Blink-to-Chromium-rename style suggested by esprehn@ in https://crbug.com/582312#c17: - Getters favor not using "Get", ex. FirstChild() - Unless the type name conflicts, in which case you can either rename the type if it's easy and makes sense, or add "Get", ex. GetContext(). BUG=673480 Committed: https://crrev.com/18c69c35b756dca9096cf2fc0ab69d4b6d7ddba5 Cr-Commit-Position: refs/heads/master@{#438579}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/CallbackPromiseAdapter.h View 6 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Łukasz Anforowicz
dcheng@ + esprehn@, can you PTAL? I like appending Adapter suffix to the typenames, because: ...
4 years ago (2016-12-14 00:58:46 UTC) #4
haraken
LGTM
4 years ago (2016-12-14 01:19:58 UTC) #6
dcheng
LGTM as well, thanks!
4 years ago (2016-12-14 01:29:44 UTC) #7
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/2570193002/1
4 years ago (2016-12-14 17:40:02 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-14 19:18:29 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-14 19:22:43 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/18c69c35b756dca9096cf2fc0ab69d4b6d7ddba5
Cr-Commit-Position: refs/heads/master@{#438579}

Powered by Google App Engine
This is Rietveld 408576698