2024-06-14 19:01:45 +02:00
|
|
|
diff --git base/task/thread_pool/thread_pool_impl.cc base/task/thread_pool/thread_pool_impl.cc
|
2024-08-26 14:44:25 +02:00
|
|
|
index 64c0f50323144..cc9a4b840bafa 100644
|
2024-06-14 19:01:45 +02:00
|
|
|
--- base/task/thread_pool/thread_pool_impl.cc
|
|
|
|
+++ base/task/thread_pool/thread_pool_impl.cc
|
2024-08-26 14:44:25 +02:00
|
|
|
@@ -104,6 +104,10 @@ ThreadPoolImpl::ThreadPoolImpl(std::string_view histogram_label,
|
2024-06-14 19:01:45 +02:00
|
|
|
: kForegroundPoolEnvironmentParams.thread_type_hint,
|
|
|
|
task_tracker_->GetTrackedRef(), tracked_ref_factory_.GetTrackedRef());
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // After https://crrev.com/e2e090c363 the ThreadPool is being created earlier
|
|
|
|
+ // during initialization. Detach now so we can rebind later on the UI thread.
|
|
|
|
+ DETACH_FROM_SEQUENCE(sequence_checker_);
|
|
|
|
}
|
|
|
|
|
|
|
|
ThreadPoolImpl::~ThreadPoolImpl() {
|