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

Unified Diff: chrome/browser/icon_loader_chromeos.cc

Issue 2953633002: Move the IconLoader to use the task scheduler. (Closed)
Patch Set: Created 3 years, 6 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/icon_loader_chromeos.cc
diff --git a/chrome/browser/icon_loader_chromeos.cc b/chrome/browser/icon_loader_chromeos.cc
index 30f0005b8a7d2922c2b83145ecc951ffc76089d1..08826759a34e84ed69e522b2f21a4edd205e40be 100644
--- a/chrome/browser/icon_loader_chromeos.cc
+++ b/chrome/browser/icon_loader_chromeos.cc
@@ -191,10 +191,10 @@ IconLoader::IconGroup IconLoader::GroupForFilepath(
}
// static
-content::BrowserThread::ID IconLoader::ReadIconThreadID() {
+bool IconLoader::ReadIconRequiresUIThread() {
// ReadIcon touches non thread safe ResourceBundle images, so it must be on
// the UI thread.
- return content::BrowserThread::UI;
+ return true;
}
void IconLoader::ReadIcon() {

Powered by Google App Engine
This is Rietveld 408576698