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

Side by Side Diff: mojo/shell/run.cc

Issue 622633002: Remove unused mojo/shell/run.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « mojo/shell/run.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "mojo/shell/run.h"
6
7 #include "base/logging.h"
8 #include "mojo/application_manager/application_manager.h"
9 #include "mojo/shell/context.h"
10
11 namespace mojo {
12 namespace shell {
13
14 class StubServiceProvider : public InterfaceImpl<ServiceProvider> {
15 private:
16 virtual void ConnectToService(
17 const mojo::String& service_name,
18 ScopedMessagePipeHandle client_handle) override {}
19 };
20
21
22 void Run(Context* context, const std::vector<GURL>& app_urls) {
23 if (app_urls.empty()) {
24 LOG(ERROR) << "No app path specified";
25 return;
26 }
27
28 for (std::vector<GURL>::const_iterator it = app_urls.begin();
29 it != app_urls.end();
30 ++it) {
31 // TODO(davemoore): These leak...need refs to them.
32 StubServiceProvider* stub_sp = new StubServiceProvider;
33 ServiceProviderPtr spp;
34 BindToProxy(stub_sp, &spp);
35
36 context->application_manager()->ConnectToApplication(
37 *it, GURL(), spp.Pass());
38 }
39 }
40
41 } // namespace shell
42 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/run.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698