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

Unified Diff: components/download/internal/download_service_impl.cc

Issue 2866483002: Configuration for download service. (Closed)
Patch Set: Work on reviews. Created 3 years, 7 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
« no previous file with comments | « components/download/internal/download_service_impl.h ('k') | components/download/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/download/internal/download_service_impl.cc
diff --git a/components/download/internal/download_service_impl.cc b/components/download/internal/download_service_impl.cc
index bdce730bad678a113d605d4f5a75fb8f6105762d..44610a9a2083439ac19343e0c289de16cd841d32 100644
--- a/components/download/internal/download_service_impl.cc
+++ b/components/download/internal/download_service_impl.cc
@@ -10,10 +10,12 @@ namespace download {
DownloadService* DownloadService::Create(
const base::FilePath& storage_dir,
const scoped_refptr<base::SequencedTaskRunner>& background_task_runner) {
- return new DownloadServiceImpl();
+ return new DownloadServiceImpl(Configuration::CreateFromFinch());
}
-DownloadServiceImpl::DownloadServiceImpl() = default;
+DownloadServiceImpl::DownloadServiceImpl(std::unique_ptr<Configuration> config)
+ : config_(std::move(config)) {}
+
DownloadServiceImpl::~DownloadServiceImpl() = default;
void DownloadServiceImpl::StartDownload(const DownloadParams& download_params) {
« no previous file with comments | « components/download/internal/download_service_impl.h ('k') | components/download/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698