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

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

Issue 1126393006: core_services: Run different services in different processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests by never having an empty qualifier. Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | mojo/runner/context.cc » ('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(GURL("mojo:clipboard"), 15 manager->RegisterApplicationPackageAlias(GURL("mojo:clipboard"),
16 GURL("mojo:core_services")); 16 GURL("mojo:core_services"), "Core");
17 #if !defined(OS_ANDROID) 17 #if !defined(OS_ANDROID)
18 manager->RegisterApplicationPackageAlias(GURL("mojo:network_service"), 18 manager->RegisterApplicationPackageAlias(
19 GURL("mojo:core_services")); 19 GURL("mojo:network_service"), GURL("mojo:core_services"), "Network");
20 #endif 20 #endif
21 manager->RegisterApplicationPackageAlias(GURL("mojo:tracing"), 21 manager->RegisterApplicationPackageAlias(GURL("mojo:tracing"),
22 GURL("mojo:core_services")); 22 GURL("mojo:core_services"), "Core");
23 manager->RegisterApplicationPackageAlias(GURL("mojo:view_manager"), 23 manager->RegisterApplicationPackageAlias(GURL("mojo:view_manager"),
24 GURL("mojo:core_services")); 24 GURL("mojo:core_services"), "Core");
25 manager->RegisterApplicationPackageAlias(GURL("mojo:window_manager"), 25 manager->RegisterApplicationPackageAlias(GURL("mojo:window_manager"),
26 GURL("mojo:core_services")); 26 GURL("mojo:core_services"), "Core");
27 } 27 }
28 28
29 } // namespace mandoline 29 } // namespace mandoline
OLDNEW
« no previous file with comments | « no previous file | mojo/runner/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698