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

Unified Diff: chrome/browser/icon_loader_chromeos.cc

Issue 2953633002: Move the IconLoader to use the task scheduler. (Closed)
Patch Set: sky 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
« no previous file with comments | « chrome/browser/icon_loader_auralinux.cc ('k') | chrome/browser/icon_loader_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..70f78c12707018143de4f279bdc69212db3a2fba 100644
--- a/chrome/browser/icon_loader_chromeos.cc
+++ b/chrome/browser/icon_loader_chromeos.cc
@@ -191,10 +191,11 @@ IconLoader::IconGroup IconLoader::GroupForFilepath(
}
// static
-content::BrowserThread::ID IconLoader::ReadIconThreadID() {
+scoped_refptr<base::TaskRunner> IconLoader::GetReadIconTaskRunner() {
// ReadIcon touches non thread safe ResourceBundle images, so it must be on
// the UI thread.
- return content::BrowserThread::UI;
+ return content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::UI);
}
void IconLoader::ReadIcon() {
« no previous file with comments | « chrome/browser/icon_loader_auralinux.cc ('k') | chrome/browser/icon_loader_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698