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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 2683543005: Revert of Use TaskScheduler instead of blocking pool in wizard_controller.cc. (patchset #3 id:40001… (Closed)
Patch Set: Created 3 years, 10 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: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 3d111c724b0388c55e069165733e3f79324adc3c..fc8d785512f09f6b8ef43f2ecae4ff42874035b4 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -21,7 +21,6 @@
#include "base/metrics/histogram_macros.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/utf_string_conversions.h"
-#include "base/task_scheduler/post_task.h"
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_process_platform_part.h"
@@ -223,6 +222,7 @@ bool NetworkAllowUpdate(const chromeos::NetworkState* network) {
#if defined(GOOGLE_CHROME_BUILD)
void InitializeCrashReporter() {
// The crash reporter initialization needs IO to complete.
+ DCHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
breakpad::InitCrashReporter(std::string());
}
#endif
@@ -724,10 +724,8 @@ void WizardController::OnChangedMetricsReportingState(bool enabled) {
if (!enabled)
return;
#if defined(GOOGLE_CHROME_BUILD)
- if (!base::PostTaskWithTraits(FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
- base::Bind(&InitializeCrashReporter))) {
+ if (!content::BrowserThread::PostBlockingPoolTask(
+ FROM_HERE, base::Bind(&InitializeCrashReporter))) {
LOG(ERROR) << "Failed to start crash reporter initialization.";
}
#endif
« 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