Make RenderViewHostTestHarness create a net::NetworkChangeNotifier
This makes RenderViewHostTestHarness own a NetworkChangeNotifier, so Network Service can skip creating one (see CreateNetworkChangeNotifierIfNeeded() in network_service.cc). The in-process NetworkService is a leaky global singleton, which also leaks a NetworkChangeNotifier that conflicts with subsequent unit tests. See: https://groups.google.com/a/chromium.org/d/msg/network-service-dev/IgNFrq1zFHI/FNCAplsCCQAJ An alternative approach is to tear down the in-process singleton NetworkService, but I ran into issues when doing that mostly because the BrowserThreadDelegate::CleanUp hook is only implemented by chrome/browser/io_thread.h and not by other content embedders. Change-Id: I1fbfca32e582621c3cfcbb7af3a82a4243c5b44b Reviewed-on: https://chromium-review.googlesource.com/1114924 Commit-Queue: Helen Li <xunjieli@chromium.org> Reviewed-by:John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/master@{#571560}
Showing
Please register or sign in to comment