mandoline filesystem: Compile filesystem into core_services.
[chromium-blink-merge.git] / mandoline / app / core_services_initialization.cc
blob7e9fde84e51e0349c77f8ae8094d555a7f23140e
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "mandoline/app/core_services_initialization.h"
7 #include "mojo/runner/context.h"
9 namespace mandoline {
11 void InitCoreServicesForContext(mojo::runner::Context* context) {
12 // TODO(erg): We should probably handle this differently; these could be
13 // autogenerated from package manifests.
14 mojo::shell::ApplicationManager* manager = context->application_manager();
15 manager->RegisterApplicationPackageAlias(GURL("mojo:clipboard"),
16 GURL("mojo:core_services"), "Core");
17 manager->RegisterApplicationPackageAlias(GURL("mojo:filesystem"),
18 GURL("mojo:core_services"), "Files");
19 #if !defined(OS_ANDROID)
20 manager->RegisterApplicationPackageAlias(GURL("mojo:view_manager"),
21 GURL("mojo:core_services"),
22 "Surfaces");
23 #endif
24 manager->RegisterApplicationPackageAlias(
25 GURL("mojo:network_service"), GURL("mojo:core_services"), "Network");
26 #if !defined(OS_ANDROID)
27 manager->RegisterApplicationPackageAlias(
28 GURL("mojo:omnibox"), GURL("mojo:core_services"), "Core");
29 #endif
30 manager->RegisterApplicationPackageAlias(
31 GURL("mojo:resource_provider"), GURL("mojo:core_services"), "Core");
32 manager->RegisterApplicationPackageAlias(
33 GURL("mojo:surfaces_service"), GURL("mojo:core_services"), "Surfaces");
34 manager->RegisterApplicationPackageAlias(GURL("mojo:tracing"),
35 GURL("mojo:core_services"), "Core");
36 manager->RegisterApplicationPackageAlias(GURL("mojo:browser"),
37 GURL("mojo:core_services"), "Core");
40 } // namespace mandoline