[omnibox] re-land https://crrev.com/c/1881978 which was reverted due to
the flaky unittest. Here we simplify unittests, especially "TestIncognito" by only checking return value of OnDeviceHeadProvider::IsOnDeviceHeadProviderAllowed. This unittest in the previous change was too heavy that it fired mulitple async calls and might eventually caused data race in ScopedFeatureList on some platforms: http://screenshot/8x1yJO66CjU. Non test cc files are the same as previous CL. Bug: 925072 Change-Id: I1e4c1666ceb7c24a599f5539d0ace90f0fc98b29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888691 Commit-Queue: Ce Chen <cch@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#711005}
Showing
Please register or sign in to comment