Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: components/offline_pages/core/downloads/download_ui_adapter_unittest.cc

Issue 2713013002: Track original URL when downloading a redirected page (Closed)
Patch Set: A little update Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
diff --git a/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc b/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
index d74b2ed29969855e189649b38d45fc7034bfdb96..fa8c7613c0641dd0a8a3c3424445bd09ddc02678 100644
--- a/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
+++ b/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
@@ -231,9 +231,10 @@ void DownloadUIAdapterTest::PumpLoop() {
int64_t DownloadUIAdapterTest::AddRequest(const GURL& url,
const ClientId& client_id) {
- return request_coordinator()->SavePageLater(
- url, client_id, /* user_requested */ true,
- RequestCoordinator::RequestAvailability::ENABLED_FOR_OFFLINER);
+ RequestCoordinator::SavePageLaterParams params;
+ params.url = url;
+ params.client_id = client_id;
+ return request_coordinator()->SavePageLater(params);
}
TEST_F(DownloadUIAdapterTest, InitialLoad) {

Powered by Google App Engine
This is Rietveld 408576698