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"
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"));
17 #if !defined(OS_ANDROID)
18 manager
->RegisterApplicationPackageAlias(GURL("mojo:network_service"),
19 GURL("mojo:core_services"));
21 manager
->RegisterApplicationPackageAlias(GURL("mojo:tracing"),
22 GURL("mojo:core_services"));
23 manager
->RegisterApplicationPackageAlias(GURL("mojo:view_manager"),
24 GURL("mojo:core_services"));
25 manager
->RegisterApplicationPackageAlias(GURL("mojo:window_manager"),
26 GURL("mojo:core_services"));
29 } // namespace mandoline