[Watch flakes]: Fix flakes from NetworkChangeNotifier
By default, the NetworkService bootstraps a leaking SystemDnsConfigChangeNotifier singleton object in NetworkChangeNotifier::NetworkChangeNotifier(). This SystemDnsConfigChangeNotifier observes the DNS configuration (via FilePathWatchers on /etc/resolv.conf and /etc/hosts on POSIX and via ObjectWatchers on the registry on Windows). These watchers outlive the BrowserTaskEnvironment of the RenderViewHostTestHarness, including it's message queues. If the trybots experience network changes (e.g. due to expiring DHCP leases or other problems), it is possible that the watchers post messages to a message queue that has been destroyed already, see crbug.com/1011275#c3. This CL cause NetworkService to use a mock NetworkChangeNotifier which does not observe network changes. Bug: 1011275 Change-Id: I426999899cadf4732a93d4040871f56332422d4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856803Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Eric Orth <ericorth@chromium.org> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org> Cr-Commit-Position: refs/heads/master@{#706449}
Showing
Please register or sign in to comment