diff options
author | viettrungluu <viettrungluu@chromium.org> | 2014-10-15 21:02:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-16 04:03:06 +0000 |
commit | 805eabb91d386c86bd64336c7643f6dfa864151d (patch) | |
tree | 843a45e9bd0ec5a3aa22dc317a811d155a90c947 /base/debug | |
parent | 4b691586093fae3feb41fa39e345c42a4ce66932 (diff) | |
download | chromium_src-805eabb91d386c86bd64336c7643f6dfa864151d.zip chromium_src-805eabb91d386c86bd64336c7643f6dfa864151d.tar.gz chromium_src-805eabb91d386c86bd64336c7643f6dfa864151d.tar.bz2 |
Convert ARRAYSIZE_UNSAFE -> arraysize in base/.
R=thestig@chromium.org
BUG=423134
Review URL: https://codereview.chromium.org/656033009
Cr-Commit-Position: refs/heads/master@{#299835}
Diffstat (limited to 'base/debug')
-rw-r--r-- | base/debug/proc_maps_linux_unittest.cc | 2 | ||||
-rw-r--r-- | base/debug/stack_trace_posix.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/base/debug/proc_maps_linux_unittest.cc b/base/debug/proc_maps_linux_unittest.cc index fc8ced6..4be5a0f 100644 --- a/base/debug/proc_maps_linux_unittest.cc +++ b/base/debug/proc_maps_linux_unittest.cc @@ -167,7 +167,7 @@ TEST(ProcMapsTest, Permissions) { MappedMemoryRegion::EXECUTE | MappedMemoryRegion::PRIVATE}, }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { + for (size_t i = 0; i < arraysize(kTestCases); ++i) { SCOPED_TRACE( base::StringPrintf("kTestCases[%zu] = %s", i, kTestCases[i].input)); diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc index ae40d7c..25acbe0 100644 --- a/base/debug/stack_trace_posix.cc +++ b/base/debug/stack_trace_posix.cc @@ -343,7 +343,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) { const int kRegisterPadding = 16; #endif - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(registers); i++) { + for (size_t i = 0; i < arraysize(registers); i++) { PrintToStderr(registers[i].label); internal::itoa_r(registers[i].value, buf, sizeof(buf), 16, kRegisterPadding); |