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

Unified Diff: chrome/browser/download/download_service_factory.cc

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased 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 | « no previous file | components/download/internal/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_service_factory.cc
diff --git a/chrome/browser/download/download_service_factory.cc b/chrome/browser/download/download_service_factory.cc
index aae4341033639e7f7d60cd9733ae252aafe8548e..7689662b3af6c5557d57d1e4e444933ef6716552 100644
--- a/chrome/browser/download/download_service_factory.cc
+++ b/chrome/browser/download/download_service_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/download/download_service_factory.h"
#include "base/files/file_path.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
#include "base/sequenced_task_runner.h"
#include "base/task_scheduler/post_task.h"
@@ -12,6 +13,7 @@
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_constants.h"
+#include "components/download/public/clients.h"
#include "components/download/public/download_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "content/public/browser/browser_context.h"
@@ -49,8 +51,9 @@ KeyedService* DownloadServiceFactory::BuildServiceInstanceFor(
profile->GetPath().Append(chrome::kDownloadServiceStorageDirname);
}
- download::DownloadService* service =
- download::DownloadService::Create(storage_dir, background_task_runner);
+ download::DownloadService* service = download::DownloadService::Create(
+ base::MakeUnique<download::DownloadClientMap>(), storage_dir,
+ background_task_runner);
// TODO(dtrainor): Register all clients here.
return service;
« no previous file with comments | « no previous file | components/download/internal/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698