DescriptionRename checkpoint() method to getCheckpoint().
The rename is needed to avoid a naming collision after changing from
Blink to Chromium naming style. Right now we have a |Checkpoint| type
alias and a |checkpoint| accessor method (differing by case of the first
character); after a naive rename by the rewrite_to_chrome_style tool we
would end up with |Checkpoint| being the name of both the type and the
accessor method (with both living in the same namespace).
Prepending a "get" prefix to the name of the accessor method is the
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=582312
TBR=japhet@chromium.org
Review-Url: https://codereview.chromium.org/2800963003
Cr-Commit-Position: refs/heads/master@{#462648}
Committed: https://chromium.googlesource.com/chromium/src/+/be9dfc362a8b2b90e054b5142c55c28334a6bded
Patch Set 1 #
Messages
Total messages: 11 (7 generated)
|