| Index: services/service_manager/public/cpp/lib/callback_binder.cc
|
| diff --git a/services/service_manager/public/cpp/lib/callback_binder.cc b/services/service_manager/public/cpp/lib/callback_binder.cc
|
| deleted file mode 100644
|
| index d761c04d3c803b768558fb4e3ba2140d2340b0c8..0000000000000000000000000000000000000000
|
| --- a/services/service_manager/public/cpp/lib/callback_binder.cc
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -// Copyright 2016 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 "services/service_manager/public/cpp/lib/callback_binder.h"
|
| -
|
| -namespace service_manager {
|
| -namespace internal {
|
| -
|
| -GenericCallbackBinder::GenericCallbackBinder(
|
| - const BindCallback& callback,
|
| - const scoped_refptr<base::SingleThreadTaskRunner>& task_runner)
|
| - : callback_(callback), task_runner_(task_runner) {}
|
| -
|
| -GenericCallbackBinder::~GenericCallbackBinder() {}
|
| -
|
| -void GenericCallbackBinder::BindInterface(
|
| - const BindSourceInfo& source_info,
|
| - const std::string& interface_name,
|
| - mojo::ScopedMessagePipeHandle handle) {
|
| - if (task_runner_) {
|
| - task_runner_->PostTask(
|
| - FROM_HERE, base::Bind(&GenericCallbackBinder::RunCallback, callback_,
|
| - base::Passed(&handle)));
|
| - return;
|
| - }
|
| - RunCallback(callback_, std::move(handle));
|
| -}
|
| -
|
| -// static
|
| -void GenericCallbackBinder::RunCallback(const BindCallback& callback,
|
| - mojo::ScopedMessagePipeHandle handle) {
|
| - callback.Run(std::move(handle));
|
| -}
|
| -
|
| -} // namespace internal
|
| -} // namespace service_manager
|
|
|