0
Files
src/content/browser/font_list_async.cc
fdoray 26f887dbd7 Remove content::kFontListSequenceToken.
SequencedWorkerPool and named sequence tokens are being
deprecated in favor of TaskScheduler.

BUG=667892

Review-Url: https://codereview.chromium.org/2886883003
Cr-Commit-Position: refs/heads/master@{#472794}
2017-05-18 14:11:22 +00:00

24 lines
723 B
C++

// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/browser/font_list_async.h"
#include <utility>
#include "base/bind.h"
#include "base/task_runner_util.h"
#include "base/values.h"
#include "content/common/font_list.h"
namespace content {
void GetFontListAsync(
base::OnceCallback<void(std::unique_ptr<base::ListValue>)> callback) {
base::PostTaskAndReplyWithResult(GetFontListTaskRunner().get(), FROM_HERE,
base::BindOnce(&GetFontList_SlowBlocking),
std::move(callback));
}
} // namespace content