Revert of Enable generation of local host candidate when RTCConfiguration is null...
[chromium-blink-merge.git] / mandoline / app / core_services_initialization.cc
blob17ee8f0017904a6ae6aa71865029e3b6a057deeb
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(
16 GURL("mojo:clipboard"), GURL("mojo:core_services"), "Core");
17 manager->RegisterApplicationPackageAlias(GURL("mojo:filesystem"),
18 GURL("mojo:core_services"), "Files");
19 #if defined(OS_LINUX) && !defined(OS_ANDROID)
20 manager->RegisterApplicationPackageAlias(GURL("mojo:font_service"),
21 GURL("mojo:core_services"), "Files");
22 #endif
23 #if !defined(OS_ANDROID)
24 // On Android, these are Java apps which are loaded in the shell process.
25 manager->RegisterApplicationPackageAlias(GURL("mojo:mus"),
26 GURL("mojo:core_services"),
27 "Surfaces");
28 manager->RegisterApplicationPackageAlias(
29 GURL("mojo:network_service"), GURL("mojo:core_services"), "Network");
30 manager->RegisterApplicationPackageAlias(
31 GURL("mojo:resource_provider"), GURL("mojo:core_services"), "Files");
32 #endif
34 #if defined(USE_AURA)
35 manager->RegisterApplicationPackageAlias(GURL("mojo:desktop_ui"),
36 GURL("mojo:core_services"),
37 "Core");
38 manager->RegisterApplicationPackageAlias(
39 GURL("mojo:omnibox"), GURL("mojo:core_services"), "Core");
40 #endif
41 manager->RegisterApplicationPackageAlias(
42 GURL("mojo:web_view"), GURL("mojo:core_services"), "Core");
43 manager->RegisterApplicationPackageAlias(
44 GURL("mojo:tracing"), GURL("mojo:core_services"), "Core");
47 } // namespace mandoline