• James Cook's avatar
    Clean up ChromeNetworkDelegate helper functions · d8f45b46
    James Cook authored
    The main IsAccessAllowedInternal function has several #if blocks.
    Extract the per-platform logic into IsAccessAllowedChromeOS() and
    IsAccessAllowAndroid() helper functions.
    
    This simplifies the #if blocks in the main function, and allows
    all #ifs to be positive-sense (no !defined anymore).
    
    No functional changes -- this is just cleanup before I add yet
    another #if for lacros.
    
    Bug: 1150934
    Test: existing unit_tests
    Change-Id: Ic0fb5ad7cc2d8b1d566c12baf8a7c8cb0d8898f2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2568813
    Commit-Queue: James Cook <jamescook@chromium.org>
    Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#832684}
    d8f45b46
chrome_network_delegate.cc 6.15 KB