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

Unified Diff: mojo/public/cpp/application/lib/connect.cc

Issue 1983263002: Replace ApplicationImpl::CreateApplicationConnector() with a standalone helper function. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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/public/cpp/application/lib/application_test_base.cc ('k') | mojo/ui/ganesh_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/lib/connect.cc
diff --git a/mojo/public/cpp/application/lib/connect.cc b/mojo/public/cpp/application/lib/connect.cc
new file mode 100644
index 0000000000000000000000000000000000000000..33130da85a8b3799e9f62cd7544de3d5a4cb45a7
--- /dev/null
+++ b/mojo/public/cpp/application/lib/connect.cc
@@ -0,0 +1,17 @@
+// Copyright 2016 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/public/cpp/application/connect.h"
+
+#include "mojo/public/interfaces/application/shell.mojom.h"
+
+namespace mojo {
+
+InterfaceHandle<ApplicationConnector> CreateApplicationConnector(Shell* shell) {
+ InterfaceHandle<ApplicationConnector> application_connector;
+ shell->CreateApplicationConnector(GetProxy(&application_connector));
+ return application_connector;
+}
+
+} // namespace mojo
« no previous file with comments | « mojo/public/cpp/application/lib/application_test_base.cc ('k') | mojo/ui/ganesh_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698