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

Unified Diff: content/common/font_list.cc

Issue 2886883003: Remove content::kFontListSequenceToken. (Closed)
Patch Set: Created 3 years, 7 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 | « content/common/font_list.h ('k') | content/common/font_list_fontconfig.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_list.cc
diff --git a/content/common/font_list.cc b/content/common/font_list.cc
index 398ee80cf60525da22e5f6339360722920d1836c..0f2ca9d65bc14336c7cefe7e98df2ae6bd80eaf2 100644
--- a/content/common/font_list.cc
+++ b/content/common/font_list.cc
@@ -4,6 +4,26 @@
#include "content/common/font_list.h"
+#include "base/lazy_instance.h"
+#include "base/task_scheduler/post_task.h"
+
namespace content {
-const char kFontListSequenceToken[] = "_font_list_sequence_token_";
+
+namespace {
+
+struct FontListTaskRunner {
+ const scoped_refptr<base::SequencedTaskRunner> task_runner =
+ base::CreateSequencedTaskRunnerWithTraits(
+ {base::MayBlock(), base::TaskPriority::USER_VISIBLE});
+};
+
+base::LazyInstance<FontListTaskRunner>::Leaky g_font_list_task_runner =
+ LAZY_INSTANCE_INITIALIZER;
+
+} // namespace
+
+scoped_refptr<base::SequencedTaskRunner> GetFontListTaskRunner() {
+ return g_font_list_task_runner.Get().task_runner;
}
+
+} // content
« no previous file with comments | « content/common/font_list.h ('k') | content/common/font_list_fontconfig.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698