Commit 3879680b authored by Francois Doray's avatar Francois Doray Committed by Commit Bot

Remove components/task_scheduler_util/renderer.

This code is not used anymore.

Bug: 810049
Change-Id: I029652468ec67d8b238a89e25b8cb9193435b4dd
Reviewed-on: https://chromium-review.googlesource.com/909289
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537337}
parent ece52f42
# Copyright 2017 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.
if (!is_ios) {
static_library("renderer") {
sources = [
"initialization.cc",
"initialization.h",
]
deps = [
"//base",
"//components/task_scheduler_util/common",
]
}
}
// Copyright 2017 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 "components/task_scheduler_util/renderer/initialization.h"
#include "base/command_line.h"
#include "components/task_scheduler_util/common/variations_util.h"
namespace task_scheduler_util {
std::unique_ptr<base::TaskScheduler::InitParams>
GetRendererTaskSchedulerInitParamsFromCommandLine() {
return GetTaskSchedulerInitParams(
"Renderer", GetVariationParamsFromCommandLine(
*base::CommandLine::ForCurrentProcess()));
}
} // namespace task_scheduler_util
// Copyright 2017 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.
#ifndef COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
#define COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
#include <memory>
#include "base/task_scheduler/task_scheduler.h"
namespace task_scheduler_util {
// Gets a TaskScheduler::InitParams object to initialize TaskScheduler in a
// renderer based off variations specified on the command line. Returns nullptr
// on failure.
std::unique_ptr<base::TaskScheduler::InitParams>
GetRendererTaskSchedulerInitParamsFromCommandLine();
} // namespace task_scheduler_util
#endif // COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment