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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/font_list.h" 5 #include "content/common/font_list.h"
6 6
7 #include "base/lazy_instance.h"
8 #include "base/task_scheduler/post_task.h"
9
7 namespace content { 10 namespace content {
8 const char kFontListSequenceToken[] = "_font_list_sequence_token_"; 11
12 namespace {
13
14 struct FontListTaskRunner {
15 const scoped_refptr<base::SequencedTaskRunner> task_runner =
16 base::CreateSequencedTaskRunnerWithTraits(
17 {base::MayBlock(), base::TaskPriority::USER_VISIBLE});
18 };
19
20 base::LazyInstance<FontListTaskRunner>::Leaky g_font_list_task_runner =
21 LAZY_INSTANCE_INITIALIZER;
22
23 } // namespace
24
25 scoped_refptr<base::SequencedTaskRunner> GetFontListTaskRunner() {
26 return g_font_list_task_runner.Get().task_runner;
9 } 27 }
28
29 } // content
OLDNEW
« 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