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

Unified Diff: components/upload_list/crash_upload_list.cc

Issue 2335193007: Remove explicit usage of SequencedWorkerPool from UploadList. (Closed)
Patch Set: rebase on r417159 Created 4 years, 3 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/upload_list/crash_upload_list.h ('k') | components/upload_list/upload_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/upload_list/crash_upload_list.cc
diff --git a/components/upload_list/crash_upload_list.cc b/components/upload_list/crash_upload_list.cc
index d13d1849ec9f12f81898a40ce8f444a9a733d2e4..9b00ed2cbd350814ab012efa8a98716434cf88f9 100644
--- a/components/upload_list/crash_upload_list.cc
+++ b/components/upload_list/crash_upload_list.cc
@@ -4,17 +4,17 @@
#include "components/upload_list/crash_upload_list.h"
+#include <utility>
+
#include "base/files/file_path.h"
#include "base/path_service.h"
-#include "base/threading/sequenced_worker_pool.h"
// static
const char CrashUploadList::kReporterLogFilename[] = "uploads.log";
-CrashUploadList::CrashUploadList(
- Delegate* delegate,
- const base::FilePath& upload_log_path,
- const scoped_refptr<base::SequencedWorkerPool>& worker_pool)
- : UploadList(delegate, upload_log_path, worker_pool) {}
+CrashUploadList::CrashUploadList(Delegate* delegate,
+ const base::FilePath& upload_log_path,
+ scoped_refptr<base::TaskRunner> task_runner)
+ : UploadList(delegate, upload_log_path, std::move(task_runner)) {}
-CrashUploadList::~CrashUploadList() {}
+CrashUploadList::~CrashUploadList() = default;
« no previous file with comments | « components/upload_list/crash_upload_list.h ('k') | components/upload_list/upload_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698