| Index: chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc
|
| diff --git a/chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc b/chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc
|
| index faecf27ca7058a28a8c9f22d59c06a2bc70a9cf4..31f905f9655b2bc4b5b15ab952a51c44f621c2c5 100644
|
| --- a/chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc
|
| +++ b/chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/sys_info.h"
|
| #include "base/threading/platform_thread.h"
|
| #include "base/threading/sequenced_worker_pool.h"
|
| +#include "base/threading/thread_restrictions.h"
|
| #include "build/build_config.h"
|
| #include "chrome/common/channel_info.h"
|
| #include "components/safe_browsing/csd.pb.h"
|
| @@ -70,7 +71,7 @@ void CollectProcessData(ClientIncidentReport_EnvironmentData_Process* process) {
|
|
|
| void CollectEnvironmentData(ClientIncidentReport_EnvironmentData* data) {
|
| // Toggling priority only makes sense in a thread pool.
|
| - DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
|
| + base::ThreadRestrictions::AssertIOAllowed();
|
| // Reset priority when done with this task.
|
| // TODO(fdoray): Post this task to the TaskScheduler with a BACKGROUND
|
| // priority instead of toggling the priority within the task.
|
|
|