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

Unified Diff: chrome/browser/safe_browsing/notification_image_reporter.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/safe_browsing/notification_image_reporter.cc
diff --git a/chrome/browser/safe_browsing/notification_image_reporter.cc b/chrome/browser/safe_browsing/notification_image_reporter.cc
index 93cc48781a3c767325427e72ff13eb3aecdbe745..2856b4752932619c793806b6b47c7b7ebc166db2 100644
--- a/chrome/browser/safe_browsing/notification_image_reporter.cc
+++ b/chrome/browser/safe_browsing/notification_image_reporter.cc
@@ -163,7 +163,7 @@ void NotificationImageReporter::DownscaleNotificationImageOnBlockingPool(
const base::WeakPtr<NotificationImageReporter>& weak_this_on_io,
const GURL& origin,
const SkBitmap& image) {
- DCHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
+ base::ThreadRestrictions::AssertIOAllowed();
// Downscale to fit within 512x512. TODO(johnme): Get this from Finch.
const double MAX_SIZE = 512;

Powered by Google App Engine
This is Rietveld 408576698