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

Issue 2326153003: Rename referrerPolicy() methods to getReferrerPolicy(). (Closed)

Created:
4 years, 3 months ago by Łukasz Anforowicz
Modified:
4 years ago
Reviewers:
tkent, gavinp, nasko
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, danakj, darin-cc_chromium.org, dcheng, dglazkov+blink, falken, gavinp+prerender_chromium.org, haraken, horo+watch_chromium.org, jam, jkarlin+watch_chromium.org, kinuko+watch, kinuko+worker_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nhiroki, shimazu+worker_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename referrerPolicy() methods to getReferrerPolicy(). The rename is needed to avoid a naming collision after changing from Blink to Chromium naming style. Right now we have a |ReferrerPolicy| type and quite a few |referrerPolicy| methods (differing only by case of the first character); after a naive rename by the rewrite_to_chrome_style tool we would end up with |ReferrerPolicy| being the name of both the type and the 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=gavinp@chromium.org, nasko@chromium.org Committed: https://crrev.com/2fdf8d1a4a83a2108cebc25c140962346bc0c2e6 Cr-Commit-Position: refs/heads/master@{#435958}

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -32 lines) Patch
M chrome/renderer/prerender/prerender_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/cache_storage/cache_storage_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/history_serialization.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebPrerender.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebDocument.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebHistoryItem.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebPrerender.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebURLRequest.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRequest.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebDocument.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebHistoryItem.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (16 generated)
Łukasz Anforowicz
tkent@, could you PTAL?
4 years ago (2016-12-02 01:18:23 UTC) #8
tkent
lgtm
4 years ago (2016-12-02 01:30:41 UTC) #9
Łukasz Anforowicz
gavinp@, nasko@ - I plan to TBR you on this mostly mechanical CL that happens ...
4 years ago (2016-12-02 15:49:48 UTC) #14
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/2326153003/20001
4 years ago (2016-12-02 16:55:30 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-02 17:00:39 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2fdf8d1a4a83a2108cebc25c140962346bc0c2e6 Cr-Commit-Position: refs/heads/master@{#435958}
4 years ago (2016-12-02 17:02:47 UTC) #22
nasko
4 years ago (2016-12-02 21:48:41 UTC) #23
Message was sent while issue was closed.
content/ LGTM

Powered by Google App Engine
This is Rietveld 408576698