Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.cc

Issue 2646003003: Avoid checking for WTFThreadData::staticData in wtfThreadData() (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.cc b/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.cc
index 8a1c428dfcb9358dd63cf73602801cd005de2a66..a01000254c2206fa43453f85603f4d797135b9ba 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.cc
@@ -15,6 +15,7 @@
#include "platform/scheduler/child/web_scheduler_impl.h"
#include "platform/scheduler/child/web_task_runner_impl.h"
#include "platform/scheduler/child/worker_scheduler_impl.h"
+#include "public/platform/Platform.h"
#include "public/platform/WebTraceLocation.h"
namespace blink {
@@ -60,6 +61,7 @@ WebThreadImplForWorkerScheduler::~WebThreadImplForWorkerScheduler() {
void WebThreadImplForWorkerScheduler::InitOnThread(
base::WaitableEvent* completion) {
+ Platform::initializeThread();
// TODO(alexclarke): Do we need to unify virtual time for workers and the
// main thread?
worker_scheduler_ = CreateWorkerScheduler();

Powered by Google App Engine
This is Rietveld 408576698