• Etienne Pierre-doray's avatar
    [TaskScheduler]: Migrate off of ScopedAllowWait in /content/shell · 80a30288
    Etienne Pierre-doray authored
    base::ThreadRestrictions::ScopedAllowWait is deprecated in favor of its more
    explicit counterpart.
    
    It should have been replaced by :
     * base::ScopedAllowBaseSyncPrimitivesForTesting in test files.
     * base::ScopedAllowBaseSyncPrimitives in non-test files
     * base::ScopedAllowBaseSyncPrimitivesOutsideBlockingScope when it's used on threads
       that don't allow blocking
    The last one is strongly frowned upon but this CL aims to document existing
    behavior rather than address it. Owners are encouraged to follow-up by fixing
    unnecessary waits and more particularly unnecessary waits
    outside-blocking-scope.
    
    This CL required special attention:
     * ScopedAllowWaitForAndroidLayoutTests was deleted in favor of
       ScopedAllowBaseSyncPrimitivesForTesting.
     * |reduced_restrictions_| was removed because the related WaitableEvent is
       now declared as idle, which does not require any allowance.
    
    Note: The non-for-testing versions require friend'ing in thread_restrictions.h
    but care was taken to add these friends ahead of git cl split (since it wasn't
    possible to do a line-by-line associated CL split).
    Refer to the top-level CL if necessary :
    https://chromium-review.googlesource.com/c/chromium/src/+/1288533
    
    Please CQ if LGTY!
    
    This CL was uploaded by git cl split.
    
    R=peter@chromium.org
    
    Bug: 766678
    Change-Id: I8065043e9b1b5005fb9ff2894cb2dc30098efd8e
    Reviewed-on: https://chromium-review.googlesource.com/c/1325205
    Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
    Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
    Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#607673}
    80a30288
scoped_android_configuration.cc 6.24 KB