summaryrefslogtreecommitdiffstats
path: root/content/browser/font_list_async.cc
diff options
context:
space:
mode:
authorfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-04 12:01:35 +0000
committerfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-04 12:01:35 +0000
commitbc96dad5024f6b875da211924a72cb0372824956 (patch)
treef8976778d36a0b2f76ce3bb8e6b6813af54f4e22 /content/browser/font_list_async.cc
parentdd61dc15ed0bea2dbce0d4107b43c59426c84ad6 (diff)
downloadchromium_src-bc96dad5024f6b875da211924a72cb0372824956.zip
chromium_src-bc96dad5024f6b875da211924a72cb0372824956.tar.gz
chromium_src-bc96dad5024f6b875da211924a72cb0372824956.tar.bz2
Use sequenced workers for the getting the system's font list.
This is necessary because on Linux we use Pango, which is not threadsafe (only newer versions are). BUG=223772 Review URL: https://chromiumcodereview.appspot.com/13458002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/font_list_async.cc')
-rw-r--r--content/browser/font_list_async.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/font_list_async.cc b/content/browser/font_list_async.cc
index 819e62b..4225319 100644
--- a/content/browser/font_list_async.cc
+++ b/content/browser/font_list_async.cc
@@ -38,7 +38,9 @@ void GetFontListAsync(
DCHECK(well_known_thread)
<< "Can only call GetFontList from a well-known thread.";
- BrowserThread::PostBlockingPoolTask(FROM_HERE,
+ BrowserThread::PostBlockingPoolSequencedTask(
+ kFontListSequenceToken,
+ FROM_HERE,
base::Bind(&GetFontListInBlockingPool, id, callback));
}