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

Unified Diff: trunk/src/mojo/public/cpp/application/connect.h

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/mojo/public/cpp/application/connect.h
===================================================================
--- trunk/src/mojo/public/cpp/application/connect.h (revision 272983)
+++ trunk/src/mojo/public/cpp/application/connect.h (working copy)
@@ -1,26 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef MOJO_PUBLIC_CPP_APPLICATION_CONNECT_H_
-#define MOJO_PUBLIC_CPP_APPLICATION_CONNECT_H_
-
-#include "mojo/public/cpp/bindings/allocation_scope.h"
-#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
-
-namespace mojo {
-
-template <typename Interface>
-inline void ConnectToService(ServiceProvider* service_provider,
- const std::string& url,
- InterfacePtr<Interface>* ptr) {
- MessagePipe pipe;
- ptr->Bind(pipe.handle0.Pass());
-
- AllocationScope scope;
- service_provider->ConnectToService(url, pipe.handle1.Pass());
-}
-
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_CPP_APPLICATION_CONNECT_H_
« no previous file with comments | « trunk/src/mojo/public/cpp/application/application.h ('k') | trunk/src/mojo/public/cpp/application/lib/application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698