| Index: chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc
|
| diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc b/chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc
|
| index 315d3353116a7d41d247c763106199a5693b1ef5..8efe68358a68ad31a7765aea40b2ee2362647c9b 100644
|
| --- a/chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc
|
| +++ b/chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/memory/ptr_util.h"
|
| #include "base/task_scheduler/post_task.h"
|
| #include "base/threading/sequenced_worker_pool.h"
|
| +#include "base/threading/thread_restrictions.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "components/prefs/pref_service.h"
|
| #include "components/prefs/scoped_user_pref_update.h"
|
| @@ -32,8 +33,7 @@ constexpr char kIconFileExtension[] = ".png";
|
| // Save |raw_icon| for given |app_id|.
|
| void SaveIconToLocalOnBlockingPool(const base::FilePath& icon_path,
|
| std::vector<unsigned char> image_data) {
|
| - DCHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
|
| -
|
| + base::ThreadRestrictions::AssertIOAllowed();
|
| const base::FilePath dir = icon_path.DirName();
|
| if (!base::PathExists(dir) && !base::CreateDirectory(dir)) {
|
| LOG(ERROR) << "Failed to create directory to store kiosk icons";
|
|
|