Index: content/browser/background_fetch/background_fetch_data_manager_unittest.cc |
diff --git a/content/browser/background_fetch/background_fetch_data_manager_unittest.cc b/content/browser/background_fetch/background_fetch_data_manager_unittest.cc |
index a89fd8d708fd3f6a3c5fc911259442fcc0e8ba37..6096005243774c876779a655628876a580c670f1 100644 |
--- a/content/browser/background_fetch/background_fetch_data_manager_unittest.cc |
+++ b/content/browser/background_fetch/background_fetch_data_manager_unittest.cc |
@@ -76,12 +76,15 @@ class BackgroundFetchDataManagerTest : public BackgroundFetchTestBase { |
// Create |num_requests| BackgroundFetchRequestInfo's. |
std::vector<std::unique_ptr<BackgroundFetchRequestInfo>> request_infos; |
for (int i = 0; i < num_requests; i++) { |
+ ServiceWorkerHeaderMap headers; |
+ ServiceWorkerFetchRequest request(GURL(kResource), "GET", headers, |
+ Referrer(), false /* is_reload */); |
request_infos.push_back( |
- base::MakeUnique<BackgroundFetchRequestInfo>(GURL(kResource), kTag)); |
+ base::MakeUnique<BackgroundFetchRequestInfo>(request)); |
} |
std::unique_ptr<BackgroundFetchJobInfo> job_info = |
base::MakeUnique<BackgroundFetchJobInfo>( |
- "tag", url::Origin(GURL(kJobOrigin)), kServiceWorkerRegistrationId); |
+ kTag, url::Origin(GURL(kJobOrigin)), kServiceWorkerRegistrationId); |
job_info->set_num_requests(num_requests); |
job_guid_ = job_info->guid(); |