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

Unified Diff: services/files/files_app.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.h ('k') | services/files/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/files_app.cc
diff --git a/services/files/files_app.cc b/services/files/files_app.cc
new file mode 100644
index 0000000000000000000000000000000000000000..368b5a0577fe25f747426652494445ec24dd0a5f
--- /dev/null
+++ b/services/files/files_app.cc
@@ -0,0 +1,27 @@
+// 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/files/files_app.h"
+
+#include "mojo/services/files/interfaces/files.mojom.h"
+#include "services/files/files_impl.h"
+
+namespace mojo {
+namespace files {
+
+FilesApp::FilesApp() {}
+FilesApp::~FilesApp() {}
+
+bool FilesApp::ConfigureIncomingConnection(
+ ServiceProviderImpl* service_provider_impl) {
+ service_provider_impl->AddService<Files>(
+ [](const ConnectionContext& connection_context,
+ InterfaceRequest<Files> files_request) {
+ new FilesImpl(connection_context, files_request.Pass());
+ });
+ return true;
+}
+
+} // namespace files
+} // namespace mojo
« no previous file with comments | « services/files/files_app.h ('k') | services/files/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698