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

Issue 1467003002: Switch to static_assert in base/. (Closed)

Created:
5 years, 1 month ago by Avi (use Gerrit)
Modified:
5 years ago
CC:
chromium-reviews, sadrul, vmpstr+watch_chromium.org, grt+watch_chromium.org, gavinp+memory_chromium.org, asvitkine+watch_chromium.org, wfh+watch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch to static_assert in base/. BUG=442514 Committed: https://crrev.com/4ec0dffe9e013e64058ff506a76bc822957227aa Cr-Commit-Position: refs/heads/master@{#361337}

Patch Set 1 #

Patch Set 2 : missed one #

Total comments: 7

Patch Set 3 : rewrote all descriptions #

Patch Set 4 : // #

Patch Set 5 : / #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -145 lines) Patch
M base/android/jni_android.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M base/atomicops_internals_x86_msvc.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/bind.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M base/bind_internal.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/containers/small_map.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/containers/stack_container.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M base/files/file_posix.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M base/files/file_win.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M base/json/json_reader.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/json/string_escape.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/logging.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/mac/foundation_util_unittest.mm View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/macros.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/memory/scoped_ptr.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/memory/scoped_ptr_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/memory/singleton_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/memory/weak_ptr.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/message_loop/message_loop.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M base/observer_list_threadsafe.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M base/rand_util.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/strings/safe_sprintf.cc View 1 2 2 chunks +8 lines, -13 lines 0 comments Download
M base/strings/string16.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/sync_socket_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/sync_socket_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/template_util_unittest.cc View 1 2 2 chunks +65 lines, -66 lines 0 comments Download
M base/time/time_mac.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M base/time/time_win_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/win/i18n.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M base/win/iat_patch_function.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M base/win/scoped_bstr.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/win/scoped_comptr.h View 1 chunk +3 lines, -2 lines 0 comments Download
M base/win/scoped_variant.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467003002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467003002/1
5 years, 1 month ago (2015-11-22 00:32:40 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467003002/20001
5 years, 1 month ago (2015-11-22 00:34:16 UTC) #4
Avi (use Gerrit)
5 years, 1 month ago (2015-11-22 00:48:37 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-22 04:52:10 UTC) #9
Mostyn Bramley-Moore
It might be slightly better to remove the underscores and camel-casing from the messages. https://codereview.chromium.org/1467003002/diff/20001/base/android/jni_android.cc ...
5 years, 1 month ago (2015-11-23 06:44:14 UTC) #11
Mark Mentovai
If you produced these mechanically to begin with, it’d be good to say how you ...
5 years, 1 month ago (2015-11-23 14:21:37 UTC) #12
Avi (use Gerrit)
So this was mechanical (though the first two steps were manual): 1. s/COMPILE_ASSERT/static_assert/ 2. quotify ...
5 years, 1 month ago (2015-11-23 16:11:02 UTC) #13
Mark Mentovai
Yeah, can you transform those underscores to spaces? Should be easy.
5 years, 1 month ago (2015-11-23 16:11:47 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467003002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467003002/40001
5 years, 1 month ago (2015-11-24 00:47:29 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/140281)
5 years, 1 month ago (2015-11-24 02:24:58 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467003002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467003002/60001
5 years, 1 month ago (2015-11-24 03:20:11 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/148706) android_chromium_gn_compile_dbg on ...
5 years, 1 month ago (2015-11-24 03:38:39 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467003002/80001
5 years, 1 month ago (2015-11-24 03:39:04 UTC) #23
Avi (use Gerrit)
https://codereview.chromium.org/1467003002/diff/20001/base/memory/singleton_unittest.cc File base/memory/singleton_unittest.cc (right): https://codereview.chromium.org/1467003002/diff/20001/base/memory/singleton_unittest.cc#newcode12 base/memory/singleton_unittest.cc:12: static_assert(DefaultSingletonTraits<int>::kRegisterAtExit == true, "a"); On 2015/11/23 06:44:14, Mostyn Bramley-Moore ...
5 years, 1 month ago (2015-11-24 04:49:43 UTC) #24
Mark Mentovai
LGTM
5 years, 1 month ago (2015-11-24 05:05:22 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133432)
5 years, 1 month ago (2015-11-24 06:22:07 UTC) #27
Mostyn Bramley-Moore
Looks like you missed a few underscores in the messages in some files (not that ...
5 years, 1 month ago (2015-11-24 06:47:30 UTC) #28
Avi (use Gerrit)
On 2015/11/24 06:47:30, Mostyn Bramley-Moore wrote: > Looks like you missed a few underscores in ...
5 years ago (2015-11-24 13:07:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467003002/80001
5 years ago (2015-11-24 13:08:32 UTC) #31
Mostyn Bramley-Moore
> Which ones? I left the underscores in where it seemed correct, like scoped_ptr, > ...
5 years ago (2015-11-24 13:40:17 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-24 14:26:32 UTC) #33
commit-bot: I haz the power
5 years ago (2015-11-24 14:27:27 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4ec0dffe9e013e64058ff506a76bc822957227aa
Cr-Commit-Position: refs/heads/master@{#361337}

Powered by Google App Engine
This is Rietveld 408576698