| Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp
|
| index 35322d3ef63b79e4ac2a61ae8e8e7abb60cd89fe..e3568eb8eaa4f0f3b654f07c1a7e95a8fc4f0c25 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp
|
| @@ -316,17 +316,12 @@ ScriptPromise ScriptPromise::all(ScriptState* scriptState, const Vector<ScriptPr
|
|
|
| void ScriptPromise::increaseInstanceCount()
|
| {
|
| - // An instance is only counted only on the main thread. This is because the
|
| - // leak detector can detect leaks on the main thread so far. We plan to fix
|
| - // the leak detector to work on worker threads (crbug.com/507224).
|
| - if (isMainThread())
|
| - InstanceCounters::incrementCounter(InstanceCounters::ScriptPromiseCounter);
|
| + InstanceCounters::incrementCounter(InstanceCounters::ScriptPromiseCounter);
|
| }
|
|
|
| void ScriptPromise::decreaseInstanceCount()
|
| {
|
| - if (isMainThread())
|
| - InstanceCounters::decrementCounter(InstanceCounters::ScriptPromiseCounter);
|
| + InstanceCounters::decrementCounter(InstanceCounters::ScriptPromiseCounter);
|
| }
|
|
|
| } // namespace blink
|
|
|