OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "services/service_manager/standalone/context.h" | 5 #include "services/service_manager/standalone/context.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "services/service_manager/standalone/tracer.h" | 43 #include "services/service_manager/standalone/tracer.h" |
44 #include "services/service_manager/switches.h" | 44 #include "services/service_manager/switches.h" |
45 #include "services/tracing/public/cpp/provider.h" | 45 #include "services/tracing/public/cpp/provider.h" |
46 #include "services/tracing/public/cpp/switches.h" | 46 #include "services/tracing/public/cpp/switches.h" |
47 #include "services/tracing/public/interfaces/tracing.mojom.h" | 47 #include "services/tracing/public/interfaces/tracing.mojom.h" |
48 | 48 |
49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
50 #include "services/service_manager/runner/host/mach_broker.h" | 50 #include "services/service_manager/runner/host/mach_broker.h" |
51 #endif | 51 #endif |
52 | 52 |
53 namespace shell { | 53 namespace service_manager { |
54 namespace { | 54 namespace { |
55 | 55 |
56 base::FilePath::StringType GetPathFromCommandLineSwitch( | 56 base::FilePath::StringType GetPathFromCommandLineSwitch( |
57 const base::StringPiece& value) { | 57 const base::StringPiece& value) { |
58 #if defined(OS_POSIX) | 58 #if defined(OS_POSIX) |
59 return value.as_string(); | 59 return value.as_string(); |
60 #elif defined(OS_WIN) | 60 #elif defined(OS_WIN) |
61 return base::UTF8ToUTF16(value); | 61 return base::UTF8ToUTF16(value); |
62 #endif // OS_POSIX | 62 #endif // OS_POSIX |
63 } | 63 } |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 mojom::InterfaceProviderPtr remote_interfaces; | 285 mojom::InterfaceProviderPtr remote_interfaces; |
286 mojom::InterfaceProviderPtr local_interfaces; | 286 mojom::InterfaceProviderPtr local_interfaces; |
287 | 287 |
288 std::unique_ptr<ConnectParams> params(new ConnectParams); | 288 std::unique_ptr<ConnectParams> params(new ConnectParams); |
289 params->set_source(CreateServiceManagerIdentity()); | 289 params->set_source(CreateServiceManagerIdentity()); |
290 params->set_target(Identity(name, mojom::kRootUserID)); | 290 params->set_target(Identity(name, mojom::kRootUserID)); |
291 params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces)); | 291 params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces)); |
292 service_manager_->Connect(std::move(params)); | 292 service_manager_->Connect(std::move(params)); |
293 } | 293 } |
294 | 294 |
295 } // namespace shell | 295 } // namespace service_manager |
OLD | NEW |