
Since kNetworkServiceInProcess flag doesn't imply IsInProcessNetworkService directly due to some environment restriction, add new function to force that. This CL also moves the flag check in the tests from SetUp() to SetUpOnMainThread() because t/v/fieldtrial_testing_config.json applies flags at content::ShellContentBrowserClient::SetUpFieldTrials(), which is called after SetUp(). Bug: 1395707 Change-Id: Ice6205294e6633c03da927be5e15da2ca4216023 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4520651 Reviewed-by: John Abd-El-Malek <jam@chromium.org> Auto-Submit: Yoichi Osato <yoichio@chromium.org> Commit-Queue: John Abd-El-Malek <jam@chromium.org> Owners-Override: John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/main@{#1152173}