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

Issue 1676703002: Stop using macros to paste together names for static_asserts. (Closed)

Created:
4 years, 10 months ago by danakj
Modified:
4 years, 10 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, dcheng, feature-media-reviews_chromium.org, jam, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-screen-orientation_chromium.org, mlamouri+watch-content_chromium.org, piman, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop using macros to paste together names for static_asserts. This unifies all the static assert macros to be: - Named STATIC_ASSERT_ENUM - Use static_cast<int>() instead of other disallowed casts. - Take the full enum name as an input so that code search and rewriter tools etc can find the actual thing being done by the code. This will allow the rewrite_to_chrome_style tool to change blink enum names and fix these places up too so things compile. R=thakis@chromium.org TBR=sievers,raymes BUG=584474 Committed: https://crrev.com/365175c67f230c9f34c0be8580d9477daf0faa26 Cr-Commit-Position: refs/heads/master@{#373970}

Patch Set 1 #

Patch Set 2 : static-asserts-enums: macros~howdotheywork #

Patch Set 3 : static-asserts-enums: typo #

Patch Set 4 : static-asserts-enums: a,b #

Patch Set 5 : static-asserts-enums: a,b,#a #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1120 lines, -1146 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 chunk +9 lines, -10 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 2 3 4 1 chunk +11 lines, -10 lines 0 comments Download
M content/child/appcache/appcache_frontend_impl.cc View 1 chunk +46 lines, -40 lines 0 comments Download
M content/child/assert_matching_enums.cc View 1 2 3 1 chunk +34 lines, -37 lines 0 comments Download
M content/child/web_url_request_util.cc View 1 chunk +102 lines, -104 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 1 chunk +26 lines, -40 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 2 chunks +15 lines, -25 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 4 chunks +43 lines, -40 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 4 chunks +17 lines, -25 lines 0 comments Download
M pdf/pdfium/pdfium_assert_matching_enums.cc View 1 chunk +197 lines, -198 lines 0 comments Download
M ppapi/thunk/ppb_text_input_thunk.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp View 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 chunk +590 lines, -591 lines 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoader.cpp View 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 chunk +11 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
danakj
4 years, 10 months ago (2016-02-05 21:39:10 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676703002/1
4 years, 10 months ago (2016-02-05 21:40:06 UTC) #3
danakj
+sievers for content/ +thestig for pdf/ +raymes for ppapi/ +caitkp for components/
4 years, 10 months ago (2016-02-05 21:40:30 UTC) #5
danakj
+dalecurtis for media/
4 years, 10 months ago (2016-02-05 21:40:50 UTC) #7
Nico
I was about to write "we should make the tool better instead", but this change ...
4 years, 10 months ago (2016-02-05 21:48:51 UTC) #8
DaleCurtis
media/ lgtm
4 years, 10 months ago (2016-02-05 22:01:46 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/89708)
4 years, 10 months ago (2016-02-05 22:06:57 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676703002/20001
4 years, 10 months ago (2016-02-05 22:20:49 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/112401) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 10 months ago (2016-02-05 22:25:30 UTC) #14
Lei Zhang
On 2016/02/05 21:40:30, danakj wrote: > +sievers for content/ > +thestig for pdf/ > +raymes ...
4 years, 10 months ago (2016-02-05 22:48:08 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676703002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676703002/80001
4 years, 10 months ago (2016-02-05 22:55:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676703002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676703002/80001
4 years, 10 months ago (2016-02-05 23:37:48 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-06 00:37:46 UTC) #26
commit-bot: I haz the power
4 years, 10 months ago (2016-02-06 00:40:08 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/365175c67f230c9f34c0be8580d9477daf0faa26
Cr-Commit-Position: refs/heads/master@{#373970}

Powered by Google App Engine
This is Rietveld 408576698