| Index: third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| index 687dbf3dc53099a51f6a8e422c901a8bc84c2980..89decc0d01f4d8fe1ff0ee6c2336dc5bd4de4440 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
|
| @@ -287,9 +287,6 @@ void WorkerThread::initialize(PassOwnPtr<WorkerThreadStartupData> startupData)
|
| backingThread().addTaskObserver(m_microtaskRunner.get());
|
|
|
| m_isolate = initializeIsolate();
|
| - if (RuntimeEnabledFeatures::v8IdleTasksEnabled()) {
|
| - V8PerIsolateData::enableIdleTasks(m_isolate, adoptPtr(new V8IdleTaskRunner(m_webScheduler)));
|
| - }
|
| // Optimize for memory usage instead of latency for the worker isolate.
|
| m_isolate->IsolateInBackgroundNotification();
|
| m_workerGlobalScope = createWorkerGlobalScope(startupData);
|
| @@ -487,7 +484,8 @@ v8::Isolate* WorkerThread::initializeIsolate()
|
| OwnPtr<V8IsolateInterruptor> interruptor = adoptPtr(new V8IsolateInterruptor(isolate));
|
| ThreadState::current()->addInterruptor(interruptor.release());
|
| ThreadState::current()->registerTraceDOMWrappers(isolate, V8GCController::traceDOMWrappers);
|
| -
|
| + if (RuntimeEnabledFeatures::v8IdleTasksEnabled())
|
| + V8PerIsolateData::enableIdleTasks(isolate, adoptPtr(new V8IdleTaskRunner(m_webScheduler)));
|
| return isolate;
|
| }
|
|
|
|
|