Chromium Code Reviews| 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 39b5604b3413c0469aa96a2eec0151c137864beb..e7ff0a385948276558f6c5b3e022403afb0c092a 100644 |
| --- a/chrome/browser/chromeos/login/wizard_controller.cc |
| +++ b/chrome/browser/chromeos/login/wizard_controller.cc |
| @@ -21,6 +21,7 @@ |
| #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" |
| @@ -222,7 +223,6 @@ 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 |
| @@ -718,8 +718,10 @@ void WizardController::OnChangedMetricsReportingState(bool enabled) { |
| if (!enabled) |
| return; |
| #if defined(GOOGLE_CHROME_BUILD) |
| - if (!content::BrowserThread::PostBlockingPoolTask( |
| - FROM_HERE, base::Bind(&InitializeCrashReporter))) { |
| + if (!base::PostTaskWithTraits(FROM_HERE, |
|
tapted
2017/02/07 02:23:55
FAILED: obj/chrome/browser/chromeos/chromeos/wizar
|
| + base::TaskTraits().MayBlock().WithPriority( |
| + base::TaskPriority::BACKGROUND), |
| + base::Bind(&InitializeCrashReporter))) { |
| LOG(ERROR) << "Failed to start crash reporter initialization."; |
| } |
| #endif |