• OlivierLi's avatar
    Create HangWatchScopeDisabled. · b295f20a
    OlivierLi authored
    This scope object can be used to disable hang watching when it is known
    an operation can run in unbounded time. HangWatchScope is renamed to
    HangWatchScopeEnabled as part of this change also for symmetry.
    
    This is done through the introduction of a new persistent flag
    kHasActiveHangWatchScopeDisabled that can ensure that new
    HangWatchScopeEnabled instances do not count towards hang watching.
    
    Bug: 1034046
    Change-Id: I9d8d8b2812a31fe29ba7980d64567798ada3b432
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288195Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
    Commit-Queue: François Doray <fdoray@chromium.org>
    Auto-Submit: Oliver Li <olivierli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#796459}
    b295f20a
worker_thread.cc 11.3 KB