Make manifest URL prefix configurable.
commitb0874a22ca01cacfbd6553d869f78ad3a500826e
authortwifkak <twifkak@chromium.org>
Wed, 17 Jun 2015 01:38:50 +0000 (16 18:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 01:39:16 +0000 (17 01:39 +0000)
tree353ec5a206b4127278f1f55681eb24a6155a2b77
parent4fefd9850ecbc0fd4c5bb4d2f83c0a545e2fcac1
Make manifest URL prefix configurable.

Add a manifest_url_prefix parameter to PrecacheFetcher. If non-empty, its value
will override the flag-specified default. Change PrecacheManager to fetch the
value of the "manifest_url_prefix" variation parameter for the Precache field
trial (empty string if not present), and pass it to PrecacheFetcher.

This way, we can easily switch between multiple versions of the
manifests, and even experiment on multiple variants simultaneously.

BUG=309216

Review URL: https://codereview.chromium.org/1177983002

Cr-Commit-Position: refs/heads/master@{#334765}
components/precache/content/DEPS
components/precache/content/precache_manager.cc
components/precache/core/precache_fetcher.cc
components/precache/core/precache_fetcher.h
components/precache/core/precache_fetcher_unittest.cc