| Index: third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
|
| index 10ca0f6487db1efc963df8a9741c6495cf7712d1..4e455e9504259db35ade85d82460e1d5278bc45f 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp
|
| @@ -710,11 +710,11 @@ void V8Console::clearInspectedContextIfNeeded(v8::Local<v8::Context> context, v8
|
|
|
| bool V8Debugger::isCommandLineAPIMethod(const String16& name)
|
| {
|
| - DEFINE_STATIC_LOCAL(protocol::HashSet<String16>, methods, ());
|
| + static protocol::HashSet<String16> methods;
|
| if (methods.size() == 0) {
|
| const char* members[] = { "dir", "dirxml", "keys", "values", "profile", "profileEnd", "inspect",
|
| "copy", "clear", "debug", "undebug", "monitor", "unmonitor", "table" };
|
| - for (size_t i = 0; i < WTF_ARRAY_LENGTH(members); ++i)
|
| + for (size_t i = 0; i < PROTOCOL_ARRAY_LENGTH(members); ++i)
|
| methods.add(members[i]);
|
| }
|
| return methods.find(name) != methods.end();
|
| @@ -722,10 +722,10 @@ bool V8Debugger::isCommandLineAPIMethod(const String16& name)
|
|
|
| bool V8Debugger::isCommandLineAPIGetter(const String16& name)
|
| {
|
| - DEFINE_STATIC_LOCAL(protocol::HashSet<String16>, getters, ());
|
| + static protocol::HashSet<String16> getters;
|
| if (getters.size() == 0) {
|
| const char* members[] = { "$0", "$1", "$2", "$3", "$4", "$_" };
|
| - for (size_t i = 0; i < WTF_ARRAY_LENGTH(members); ++i)
|
| + for (size_t i = 0; i < PROTOCOL_ARRAY_LENGTH(members); ++i)
|
| getters.add(members[i]);
|
| }
|
| return getters.find(name) != getters.end();
|
|
|