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

Issue 2569883002: Rename documentState() to getDocumentState(). (Closed)

Created:
4 years ago by Łukasz Anforowicz
Modified:
4 years ago
Reviewers:
Charlie Reis, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, tyoshino+watch_chromium.org, jam, loading-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, kinuko+watch, Nate Chapin, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename documentState() to getDocumentState(). The rename is needed to avoid a naming collision after changing from Blink to Chromium naming style. Right now we have a |DocumentState| type and a |documentState| 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 |DocumentState| 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=creis@chromium.org Committed: https://crrev.com/de6c362bda983c827405e0582564bd219a13121c Cr-Commit-Position: refs/heads/master@{#437995}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M content/renderer/history_serialization.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/HistoryItem.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/HistoryItem.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebHistoryItem.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebHistoryItem.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (12 generated)
Łukasz Anforowicz
dcheng@, could you PTAL?
4 years ago (2016-12-12 22:20:38 UTC) #4
dcheng
lgtm
4 years ago (2016-12-13 00:45:54 UTC) #5
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/2569883002/1
4 years ago (2016-12-13 00:48:52 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/324295)
4 years ago (2016-12-13 01:01:09 UTC) #10
Łukasz Anforowicz
creis@, I hope you don't mind me TBR-ing you on this CL (the changes in ...
4 years ago (2016-12-13 01:06:36 UTC) #13
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/2569883002/1
4 years ago (2016-12-13 01:07:59 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-13 02:40:47 UTC) #18
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/de6c362bda983c827405e0582564bd219a13121c Cr-Commit-Position: refs/heads/master@{#437995}
4 years ago (2016-12-13 02:42:51 UTC) #20
Charlie Reis
4 years ago (2016-12-13 17:57:37 UTC) #21
Message was sent while issue was closed.
Sure, content/ LGTM

Powered by Google App Engine
This is Rietveld 408576698