| Index: services/files/main.cc
|
| diff --git a/services/files/main.cc b/services/files/main.cc
|
| index 04f61a974d0fe2c7da10b4b285e05ce44904215a..07effcf19a0173d103d320233ec3d7c06ab1be5b 100644
|
| --- a/services/files/main.cc
|
| +++ b/services/files/main.cc
|
| @@ -2,39 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/macros.h"
|
| #include "mojo/application/application_runner_chromium.h"
|
| #include "mojo/public/c/system/main.h"
|
| -#include "mojo/public/cpp/application/application_delegate.h"
|
| -#include "mojo/public/cpp/application/service_provider_impl.h"
|
| -#include "mojo/services/files/interfaces/files.mojom.h"
|
| -#include "services/files/files_impl.h"
|
| -
|
| -namespace mojo {
|
| -namespace files {
|
| -
|
| -class FilesApp : public ApplicationDelegate {
|
| - public:
|
| - FilesApp() {}
|
| - ~FilesApp() override {}
|
| -
|
| - private:
|
| - // |ApplicationDelegate| override:
|
| - bool ConfigureIncomingConnection(
|
| - ServiceProviderImpl* service_provider_impl) override {
|
| - service_provider_impl->AddService<Files>(
|
| - [](const ConnectionContext& connection_context,
|
| - InterfaceRequest<Files> files_request) {
|
| - new FilesImpl(connection_context, files_request.Pass());
|
| - });
|
| - return true;
|
| - }
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(FilesApp);
|
| -};
|
| -
|
| -} // namespace files
|
| -} // namespace mojo
|
| +#include "services/files/files_app.h"
|
|
|
| MojoResult MojoMain(MojoHandle application_request) {
|
| mojo::ApplicationRunnerChromium runner(new mojo::files::FilesApp());
|
|
|