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

Issue 2573523002: Rename request() method to getRequest(). (Closed)

Created:
4 years ago by Łukasz Anforowicz
Modified:
4 years ago
CC:
chromium-reviews, tzik, nasko+codewatch_chromium.org, eae+blinkwatch, dcheng, apavlov+blink_chromium.org, kinuko+watch, rwlbuis, jsbell+serviceworker_chromium.org, Yoav Weiss, blink-reviews-html_chromium.org, jam, blink-reviews-dom_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, falken+watch_chromium.org, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, sof, caseq+blink_chromium.org, lushnikov+blink_chromium.org, loading-reviews_chromium.org, nhiroki, Nate Chapin, michaeln, shimazu+serviceworker_chromium.org, tyoshino+watch_chromium.org, mlamouri+watch-blink_chromium.org, serviceworker-reviews, loading-reviews+parser_chromium.org, pfeldman+blink_chromium.org, kinuko+serviceworker, horo+watch_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org, esprehn, bashi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename request() methods in blink namespace to getRequest(). The rename is needed to avoid a naming collision after changing from Blink to Chromium naming style. Right now we have a |Request| type and a |request| method (differing only by case of the first character); after a naive rename by the rewrite_to_chrome_style tool we would end up with |Request| 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(). Note that this CL doesn't change *all* instances of "request()" substring. In particular - we avoid changes that would introduce setGetRequest identifiers because of https://crbug.com/673039. BUG=582312 TBR=sky@chromium.org, melandory@chromium.org, rdevlin.cronin@chromium.org, nasko@chromium.org Committed: https://crrev.com/8f284ba52e557dce90a78e61b9e974428277ee61 Cr-Commit-Position: refs/heads/master@{#439647}

Patch Set 1 : s/ \brequest\b() / getRequest() / #

Patch Set 2 : IDL fix = setGetRequest and hasGetRequest... :-/ #

Patch Set 3 : Revert changes that would require IDL tweaks. #

Patch Set 4 : Revert javascript changes. Oops. #

Patch Set 5 : Fix up things above //content layer. #

Patch Set 6 : Rebasing... #

Patch Set 7 : Fixing a mistake I've made in USBDevice.cpp #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -60 lines) Patch
M chrome/renderer/net/net_error_helper.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 14 chunks +21 lines, -20 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 1 chunk +1 line, -1 line 2 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 chunk +1 line, -1 line 3 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/public/web/WebDataSource.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (26 generated)
Łukasz Anforowicz
yhirano@, could you PTAL? Some notes: - The failure in linux_chromium_rel_ng is in telemetry_unittests and ...
4 years ago (2016-12-15 22:30:53 UTC) #15
yhirano
https://codereview.chromium.org/2573523002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2573523002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode96 third_party/WebKit/Source/core/loader/DocumentLoader.h:96: const ResourceRequest& getRequest() const; Would it be reasonable to ...
4 years ago (2016-12-16 14:52:37 UTC) #16
Łukasz Anforowicz
https://codereview.chromium.org/2573523002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2573523002/diff/120001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode96 third_party/WebKit/Source/core/loader/DocumentLoader.h:96: const ResourceRequest& getRequest() const; On 2016/12/16 14:52:37, yhirano wrote: ...
4 years ago (2016-12-16 17:15:03 UTC) #17
yhirano
lgtm
4 years ago (2016-12-19 10:55:12 UTC) #18
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/2573523002/120001
4 years ago (2016-12-19 17:54:33 UTC) #20
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/329013)
4 years ago (2016-12-19 18:03:29 UTC) #22
Łukasz Anforowicz
dcheng@, could you please take a look at third_party/WebKit/Source/web (since there are 2 header files ...
4 years ago (2016-12-19 18:13:18 UTC) #24
Łukasz Anforowicz
sky@, melandory@, rdevlin.cronin@ - I'll TBR you for this CL - the changes under chrome/, ...
4 years ago (2016-12-19 18:16:15 UTC) #27
Łukasz Anforowicz
nasko@ - I am also TBR-ing you for content/ (the changes under content/ are a ...
4 years ago (2016-12-19 18:18:23 UTC) #30
Devlin
extensions lgtm
4 years ago (2016-12-19 18:22:03 UTC) #31
Devlin
though as an optional drive-by nit, it could be good to rename this CL to ...
4 years ago (2016-12-19 18:23:04 UTC) #32
Łukasz Anforowicz
On 2016/12/19 18:23:04, Devlin wrote: > though as an optional drive-by nit, it could be ...
4 years ago (2016-12-19 18:28:27 UTC) #34
nasko
content/ LGTM
4 years ago (2016-12-19 18:42:16 UTC) #35
haraken
WebKit LGTM
4 years ago (2016-12-20 00:01:52 UTC) #36
dcheng
blink lgtm2 https://codereview.chromium.org/2573523002/diff/120001/third_party/WebKit/Source/modules/fetch/Request.h File third_party/WebKit/Source/modules/fetch/Request.h (right): https://codereview.chromium.org/2573523002/diff/120001/third_party/WebKit/Source/modules/fetch/Request.h#newcode89 third_party/WebKit/Source/modules/fetch/Request.h:89: const FetchRequestData* getRequest() const { return m_request; ...
4 years ago (2016-12-20 00:49:49 UTC) #37
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/2573523002/120001
4 years ago (2016-12-20 01:00:34 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-20 01:08:36 UTC) #42
commit-bot: I haz the power
4 years ago (2016-12-20 01:13:55 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8f284ba52e557dce90a78e61b9e974428277ee61
Cr-Commit-Position: refs/heads/master@{#439647}

Powered by Google App Engine
This is Rietveld 408576698