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

Unified Diff: chrome/browser/icon_loader_auralinux.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_auralinux.cc
diff --git a/chrome/browser/icon_loader_auralinux.cc b/chrome/browser/icon_loader_auralinux.cc
index 9d343697309279b0a0d79c7d02bf2fad171fe1fc..eb37c20f6386685cf545d804861c14a616dc512b 100644
--- a/chrome/browser/icon_loader_auralinux.cc
+++ b/chrome/browser/icon_loader_auralinux.cc
@@ -17,10 +17,10 @@ IconLoader::IconGroup IconLoader::GroupForFilepath(
}
// static
-content::BrowserThread::ID IconLoader::ReadIconThreadID() {
+bool IconLoader::ReadIconRequiresUIThread() {
// ReadIcon() calls into views::LinuxUI and GTK2 code, 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