Split fetcher logic out of ManifestUpgradeDetector
This CL introduces ManifestUpgradeDetectorFetcher which calls back to
ManifestUpgradeDetector once:
- The user has navigated to a page which uses the specified Web Manifest URL
- The Web Manifest has been downloaded
The advantages of the split are:
- The lifetime of the native fetcher now matches the lifetime of the Java
fetcher.
- This CL makes JUnit testing easier. JUnit testing of ManifestUpgradeDetector
is desireable because it avoids having to create a lot of test pages with
different Web Manifests.
BUG=
624834
TEST=ManifestUpgradeDetectorTest.* ManifestUpgradeFetcherTest.*
Committed:
https://crrev.com/7689d29f5d5d7d1cf4937c8d22ee7795c843b26b
Cr-Commit-Position: refs/heads/master@{#409808}