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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc

Issue 2871303004: Rename TaskRunner::RunsTasksOnCurrentThread() in //chrome (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
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..fdb22f6b2a5e7a6fc7bd8b3cd70257c2df0a29d0 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_data_base.cc
@@ -32,8 +32,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";

Powered by Google App Engine
This is Rietveld 408576698