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

Unified Diff: ios/chrome/browser/crash_report/breakpad_helper.mm

Issue 2881863002: Use TaskScheduler instead of SequencedWorkerPool in breakpad_helper.mm. (Closed)
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/crash_report/breakpad_helper.mm
diff --git a/ios/chrome/browser/crash_report/breakpad_helper.mm b/ios/chrome/browser/crash_report/breakpad_helper.mm
index 4b7fd615aaf695c6b44bdf5d68db5b6cb1ed3000..ce51472b626d0cd97c34354f4349cc9e9d76933c 100644
--- a/ios/chrome/browser/crash_report/breakpad_helper.mm
+++ b/ios/chrome/browser/crash_report/breakpad_helper.mm
@@ -17,9 +17,9 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/task_scheduler/post_task.h"
#include "ios/chrome/browser/chrome_paths.h"
#import "ios/chrome/browser/crash_report/crash_report_user_application_state.h"
-#include "ios/web/public/web_thread.h"
// TODO(stuartmorgan): Move this up where it belongs once
// http://code.google.com/p/google-breakpad/issues/detail?id=487
@@ -179,8 +179,9 @@ bool IsUploadingEnabled() {
void CleanupCrashReports() {
base::FilePath crash_directory;
PathService::Get(ios::DIR_CRASH_DUMPS, &crash_directory);
- web::WebThread::PostBlockingPoolTask(
- FROM_HERE, base::Bind(&DeleteAllReportsInDirectory, crash_directory));
+ base::PostTaskWithTraits(
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
+ base::BindOnce(&DeleteAllReportsInDirectory, crash_directory));
}
void AddReportParameter(NSString* key, NSString* value, bool async) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698