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

Unified Diff: chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc

Issue 2395903002: API changes to support suspending requests (Closed)
Patch Set: Created 4 years, 2 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: chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
diff --git a/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc b/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
index 5b6e72285c1ee2601397e78052b82b452b078dc8..1318eb360eb35a097622791bccc4cf3275403f14 100644
--- a/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
+++ b/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
@@ -234,7 +234,9 @@ void OfflinePageDownloadBridge::StartDownload(
offline_pages::RequestCoordinator* request_coordinator =
offline_pages::RequestCoordinatorFactory::GetForBrowserContext(
tab->GetProfile()->GetOriginalProfile());
- request_coordinator->SavePageLater(url, client_id, true);
+ request_coordinator->SavePageLater(
+ url, client_id, true,
+ RequestCoordinator::RequestAvailability::AVAILABLE_TO_OFFLINER);
return;
}

Powered by Google App Engine
This is Rietveld 408576698