Commit fbe886d3 authored by viettrungluu's avatar viettrungluu Committed by Commit bot

Don't define ARRAYSIZE_UNSAFE except in Blink.

(We want to remove it, but there are currently some uses in Blink. We
can stop it from reappearing in Chromium.)

R=thestig@chromium.org
BUG=423134

Review URL: https://codereview.chromium.org/647433004

Cr-Commit-Position: refs/heads/master@{#300184}
parent 482d3eb1
......@@ -69,8 +69,12 @@ char (&ArraySizeHelper(const T (&array)[N]))[N];
// DEPRECATED: Just use |arraysize()|, now that C++11 has removed the
// limitations that forced the use of |ARRAYSIZE_UNSAFE()|.
// TODO(viettrungluu): Convert all instances and delete. crbug.com/423134
// TODO(viettrungluu): Convert all instances and delete. (The only uses are now
// in Blink; the ifdef is to prevent it from reappearing in Chromium.)
// crbug.com/423134
#if defined(BLINK_PLATFORM) || defined(BLINK_PLATFORM_IMPLEMENTATION)
#define ARRAYSIZE_UNSAFE(a) arraysize(a)
#endif
// Use implicit_cast as a safe version of static_cast or const_cast
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment