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

Unified Diff: mojo/shell/connect_util.h

Issue 1706063002: Eliminate ShellClientFactoryConnection & just have the ApplicationManager do it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@factory
Patch Set: . Created 4 years, 10 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/application_manager_unittest.cc ('k') | mojo/shell/connect_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_util.h
diff --git a/mojo/shell/connect_util.h b/mojo/shell/connect_util.h
index e3938f19426dcdda310d61f3fc0c66edb5cc161f..2e5f0dae817777798cec895c6b3dce9c65efc112 100644
--- a/mojo/shell/connect_util.h
+++ b/mojo/shell/connect_util.h
@@ -9,6 +9,7 @@
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/system/handle.h"
+#include "mojo/shell/identity.h"
class GURL;
@@ -19,6 +20,7 @@ class ApplicationManager;
ScopedMessagePipeHandle ConnectToInterfaceByName(
ApplicationManager* application_manager,
+ const Identity& source,
const GURL& application_url,
const std::string& interface_name);
@@ -27,10 +29,11 @@ ScopedMessagePipeHandle ConnectToInterfaceByName(
// filter.
template <typename Interface>
inline void ConnectToInterface(ApplicationManager* application_manager,
+ const Identity& source,
const GURL& application_url,
InterfacePtr<Interface>* ptr) {
ScopedMessagePipeHandle service_handle =
- ConnectToInterfaceByName(application_manager, application_url,
+ ConnectToInterfaceByName(application_manager, source, application_url,
Interface::Name_);
ptr->Bind(InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
}
« no previous file with comments | « mojo/shell/application_manager_unittest.cc ('k') | mojo/shell/connect_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698