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

Unified Diff: content/browser/font_list_async.cc

Issue 11143028: Change GetFontListAsync() to use the blocking pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/font_list_async.cc
diff --git a/content/browser/font_list_async.cc b/content/browser/font_list_async.cc
index 032cfdb82563dfbd040a46cf202efec59ae30e0e..819e62b58ba62c1fbbbd356c661cc406a6f88cf1 100644
--- a/content/browser/font_list_async.cc
+++ b/content/browser/font_list_async.cc
@@ -20,7 +20,7 @@ void ReturnFontListToOriginalThread(
callback.Run(result.Pass());
}
-void GetFontListOnFileThread(
+void GetFontListInBlockingPool(
BrowserThread::ID calling_thread_id,
const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {
scoped_ptr<base::ListValue> result(GetFontList_SlowBlocking());
@@ -38,8 +38,8 @@ void GetFontListAsync(
DCHECK(well_known_thread)
<< "Can only call GetFontList from a well-known thread.";
- BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
- base::Bind(&GetFontListOnFileThread, id, callback));
+ BrowserThread::PostBlockingPoolTask(FROM_HERE,
+ base::Bind(&GetFontListInBlockingPool, id, callback));
}
} // namespace content
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698