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

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

Issue 2866483002: Configuration for download service. (Closed)
Patch Set: Removed useless line. 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
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..4d34433ce5d21dac6e45b9d2cde03ad0c37096c7 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::Create());
}
-DownloadServiceImpl::DownloadServiceImpl() = default;
+DownloadServiceImpl::DownloadServiceImpl(std::unique_ptr<Configuration> config)
+ : config_(std::move(config)) {}
+
DownloadServiceImpl::~DownloadServiceImpl() = default;
void DownloadServiceImpl::StartDownload(const DownloadParams& download_params) {

Powered by Google App Engine
This is Rietveld 408576698