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

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

Issue 1991853003: Make BaseView et al. take an ApplicationConnector instead of an ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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/connect.h ('k') | mojo/ui/base_view.h » ('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
index 33130da85a8b3799e9f62cd7544de3d5a4cb45a7..f6957c3c253cb58c3b9ea9d6c75ef96efc6ed331 100644
--- a/mojo/public/cpp/application/lib/connect.cc
+++ b/mojo/public/cpp/application/lib/connect.cc
@@ -14,4 +14,11 @@ InterfaceHandle<ApplicationConnector> CreateApplicationConnector(Shell* shell) {
return application_connector;
}
+InterfaceHandle<ApplicationConnector> DuplicateApplicationConnector(
+ ApplicationConnector* application_connector) {
+ InterfaceHandle<ApplicationConnector> new_application_connector;
+ application_connector->Duplicate(GetProxy(&new_application_connector));
+ return new_application_connector;
+}
+
} // namespace mojo
« no previous file with comments | « mojo/public/cpp/application/connect.h ('k') | mojo/ui/base_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698