Clean up ChromeNetworkDelegate helper functions
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:Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#832684}
Showing
Please register or sign in to comment