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

Side by Side Diff: services/shell/standalone/context.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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 | « services/shell/shell_public.gyp ('k') | services/shell/tests/connect/connect_test_app.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 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/shell/standalone/context.h" 5 #include "services/shell/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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 init_params->native_runner_delegate : nullptr; 162 init_params->native_runner_delegate : nullptr;
163 runner_factory.reset(new OutOfProcessNativeRunnerFactory( 163 runner_factory.reset(new OutOfProcessNativeRunnerFactory(
164 blocking_pool_.get(), native_runner_delegate)); 164 blocking_pool_.get(), native_runner_delegate));
165 } 165 }
166 std::unique_ptr<catalog::Store> store; 166 std::unique_ptr<catalog::Store> store;
167 if (init_params) 167 if (init_params)
168 store = std::move(init_params->catalog_store); 168 store = std::move(init_params->catalog_store);
169 catalog_.reset( 169 catalog_.reset(
170 new catalog::Catalog(blocking_pool_.get(), std::move(store), nullptr)); 170 new catalog::Catalog(blocking_pool_.get(), std::move(store), nullptr));
171 shell_.reset(new Shell(std::move(runner_factory), 171 shell_.reset(new Shell(std::move(runner_factory),
172 catalog_->TakeShellClient())); 172 catalog_->TakeService()));
173 173
174 mojom::InterfaceProviderPtr tracing_remote_interfaces; 174 mojom::InterfaceProviderPtr tracing_remote_interfaces;
175 mojom::InterfaceProviderPtr tracing_local_interfaces; 175 mojom::InterfaceProviderPtr tracing_local_interfaces;
176 new TracingInterfaceProvider(&tracer_, GetProxy(&tracing_local_interfaces)); 176 new TracingInterfaceProvider(&tracer_, GetProxy(&tracing_local_interfaces));
177 177
178 std::unique_ptr<ConnectParams> params(new ConnectParams); 178 std::unique_ptr<ConnectParams> params(new ConnectParams);
179 params->set_source(CreateShellIdentity()); 179 params->set_source(CreateShellIdentity());
180 params->set_target(Identity("mojo:tracing", mojom::kRootUserID)); 180 params->set_target(Identity("mojo:tracing", mojom::kRootUserID));
181 params->set_remote_interfaces(mojo::GetProxy(&tracing_remote_interfaces)); 181 params->set_remote_interfaces(mojo::GetProxy(&tracing_remote_interfaces));
182 params->set_local_interfaces(std::move(tracing_local_interfaces)); 182 params->set_local_interfaces(std::move(tracing_local_interfaces));
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 std::unique_ptr<ConnectParams> params(new ConnectParams); 256 std::unique_ptr<ConnectParams> params(new ConnectParams);
257 params->set_source(CreateShellIdentity()); 257 params->set_source(CreateShellIdentity());
258 params->set_target(Identity(name, mojom::kRootUserID)); 258 params->set_target(Identity(name, mojom::kRootUserID));
259 params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces)); 259 params->set_remote_interfaces(mojo::GetProxy(&remote_interfaces));
260 params->set_local_interfaces(std::move(local_interfaces)); 260 params->set_local_interfaces(std::move(local_interfaces));
261 shell_->Connect(std::move(params)); 261 shell_->Connect(std::move(params));
262 } 262 }
263 263
264 } // namespace shell 264 } // namespace shell
OLDNEW
« no previous file with comments | « services/shell/shell_public.gyp ('k') | services/shell/tests/connect/connect_test_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698