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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/run.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/run.cc
diff --git a/mojo/shell/run.cc b/mojo/shell/run.cc
deleted file mode 100644
index 97d36eb566617baa515fd622f4cb8f747a6d89a7..0000000000000000000000000000000000000000
--- a/mojo/shell/run.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/shell/run.h"
-
-#include "base/logging.h"
-#include "mojo/application_manager/application_manager.h"
-#include "mojo/shell/context.h"
-
-namespace mojo {
-namespace shell {
-
-class StubServiceProvider : public InterfaceImpl<ServiceProvider> {
- private:
- virtual void ConnectToService(
- const mojo::String& service_name,
- ScopedMessagePipeHandle client_handle) override {}
-};
-
-
-void Run(Context* context, const std::vector<GURL>& app_urls) {
- if (app_urls.empty()) {
- LOG(ERROR) << "No app path specified";
- return;
- }
-
- for (std::vector<GURL>::const_iterator it = app_urls.begin();
- it != app_urls.end();
- ++it) {
- // TODO(davemoore): These leak...need refs to them.
- StubServiceProvider* stub_sp = new StubServiceProvider;
- ServiceProviderPtr spp;
- BindToProxy(stub_sp, &spp);
-
- context->application_manager()->ConnectToApplication(
- *it, GURL(), spp.Pass());
- }
-}
-
-} // namespace shell
-} // namespace mojo
« 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