Don't attempt to provision if no system_network_context_manager
When running unit_tests there is no system_network_context_manager available, so provisioning can't take place. If that is the case then don't attempt to provision an origin ID. Tested this with an Android emulator. Without this change 9 of the OptimizationGuideHintsManagerTest unit_tests failed, and all pass after this change applied. Bug: 1018052 Test: see above Change-Id: Ic3733014c00fc48d1b6860142f08daffcf3d8391 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1881950Reviewed-by:Xiaohan Wang <xhwang@chromium.org> Commit-Queue: John Rummell <jrummell@chromium.org> Cr-Commit-Position: refs/heads/master@{#710052}
Showing
Please register or sign in to comment