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

Unified Diff: services/files/main.cc

Issue 1987363004: Build libraries for a number of services. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove unnecessary imports Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/files/files_app.cc ('k') | services/icu_data/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « services/files/files_app.cc ('k') | services/icu_data/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698