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

Side by Side Diff: mandoline/app/core_services_initialization.cc

Issue 1274743004: Sandbox html_viewer on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style stuff. Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « components/html_viewer/html_viewer_main.cc ('k') | mandoline/services/core_services/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mandoline/app/core_services_initialization.h" 5 #include "mandoline/app/core_services_initialization.h"
6 6
7 #include "mojo/runner/context.h" 7 #include "mojo/runner/context.h"
8 8
9 namespace mandoline { 9 namespace mandoline {
10 10
11 void InitCoreServicesForContext(mojo::runner::Context* context) { 11 void InitCoreServicesForContext(mojo::runner::Context* context) {
12 // TODO(erg): We should probably handle this differently; these could be 12 // TODO(erg): We should probably handle this differently; these could be
13 // autogenerated from package manifests. 13 // autogenerated from package manifests.
14 mojo::shell::ApplicationManager* manager = context->application_manager(); 14 mojo::shell::ApplicationManager* manager = context->application_manager();
15 manager->RegisterApplicationPackageAlias( 15 manager->RegisterApplicationPackageAlias(
16 GURL("mojo:clipboard"), GURL("mojo:core_services"), "Sandboxed Core"); 16 GURL("mojo:clipboard"), GURL("mojo:core_services"), "Sandboxed Core");
17 manager->RegisterApplicationPackageAlias(GURL("mojo:filesystem"), 17 manager->RegisterApplicationPackageAlias(GURL("mojo:filesystem"),
18 GURL("mojo:core_services"), "Files"); 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
19 #if !defined(OS_ANDROID) 23 #if !defined(OS_ANDROID)
20 // On Android, these are Java apps which are loaded in the shell process. 24 // On Android, these are Java apps which are loaded in the shell process.
21 manager->RegisterApplicationPackageAlias(GURL("mojo:view_manager"), 25 manager->RegisterApplicationPackageAlias(GURL("mojo:view_manager"),
22 GURL("mojo:core_services"), 26 GURL("mojo:core_services"),
23 "Surfaces"); 27 "Surfaces");
24 manager->RegisterApplicationPackageAlias( 28 manager->RegisterApplicationPackageAlias(
25 GURL("mojo:network_service"), GURL("mojo:core_services"), "Network"); 29 GURL("mojo:network_service"), GURL("mojo:core_services"), "Network");
26 manager->RegisterApplicationPackageAlias( 30 manager->RegisterApplicationPackageAlias(
27 GURL("mojo:resource_provider"), GURL("mojo:core_services"), "Core"); 31 GURL("mojo:resource_provider"), GURL("mojo:core_services"), "Core");
28 #endif 32 #endif
29 33
30 #if defined(USE_AURA) 34 #if defined(USE_AURA)
31 manager->RegisterApplicationPackageAlias( 35 manager->RegisterApplicationPackageAlias(
32 GURL("mojo:omnibox"), GURL("mojo:core_services"), "Core"); 36 GURL("mojo:omnibox"), GURL("mojo:core_services"), "Core");
33 #endif 37 #endif
34 manager->RegisterApplicationPackageAlias( 38 manager->RegisterApplicationPackageAlias(
35 GURL("mojo:surfaces_service"), GURL("mojo:core_services"), "Surfaces"); 39 GURL("mojo:surfaces_service"), GURL("mojo:core_services"), "Surfaces");
36 manager->RegisterApplicationPackageAlias( 40 manager->RegisterApplicationPackageAlias(
37 GURL("mojo:tracing"), GURL("mojo:core_services"), "Sandboxed Core"); 41 GURL("mojo:tracing"), GURL("mojo:core_services"), "Sandboxed Core");
38 manager->RegisterApplicationPackageAlias(GURL("mojo:browser"), 42 manager->RegisterApplicationPackageAlias(GURL("mojo:browser"),
39 GURL("mojo:core_services"), "Core"); 43 GURL("mojo:core_services"), "Core");
40 } 44 }
41 45
42 } // namespace mandoline 46 } // namespace mandoline
OLDNEW
« no previous file with comments | « components/html_viewer/html_viewer_main.cc ('k') | mandoline/services/core_services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698