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

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

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/cpp/application/lib/application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/connect.h
diff --git a/mojo/public/cpp/application/connect.h b/mojo/public/cpp/application/connect.h
index 1f81deadf7dbbbfe4ceb59bb870525d8740268bb..c747131fc3d4c8da76618420ea6c0daac16c6bf3 100644
--- a/mojo/public/cpp/application/connect.h
+++ b/mojo/public/cpp/application/connect.h
@@ -5,7 +5,6 @@
#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 {
@@ -16,8 +15,6 @@ inline void ConnectToService(ServiceProvider* service_provider,
InterfacePtr<Interface>* ptr) {
MessagePipe pipe;
ptr->Bind(pipe.handle0.Pass());
-
- AllocationScope scope;
service_provider->ConnectToService(url, pipe.handle1.Pass());
}
« no previous file with comments | « mojo/mojo_public.gypi ('k') | mojo/public/cpp/application/lib/application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698