• Gabriel Charette's avatar
    Migrate off base::ThreadPool()-as-a-trait in /gin · 8209d844
    Gabriel Charette authored
    This CL is a logical no-op.
    
    It manually covers the use cases the script
    (https://crbug.com/1026641#c22) didn't cover in
    https://chromium-review.googlesource.com/c/chromium/src/+/2026350.
    
    A few of the affected files were also migrated to
    content::GetUIThreadTaskRunner() whenever surrounding code consistency
    was at stake (but the bulk of that migration is staged to happen after
    this one so this wasn't a priority in this batch).
    
    Most files intentionally kept base/task/post_task.h as an include. It is
    still required because of a cyclical dependency during the migration
    preventing base/task/thread_pool.h from implicitly providing
    base/task/task_traits.h to its users (callers that explicitly store
    TaskTraits and include task_traits.h don't have this problem). The
    post_task.h include will be cleaned up in a later phase.
    
    This CL was uploaded by git cl split.
    
    R=rmcilroy@chromium.org
    
    Bug: 1026641
    Change-Id: Ic1a1d402ae94bee668ddb7f449b0a57f1004f6e2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079075
    Commit-Queue: Gabriel Charette <gab@chromium.org>
    Auto-Submit: Gabriel Charette <gab@chromium.org>
    Reviewed-by: default avatarRoss McIlroy <rmcilroy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745513}
    8209d844
v8_platform.cc 15.2 KB