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

Unified Diff: mojo/shell/connect_util.cc

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/connect_util.h ('k') | mojo/shell/identity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_util.cc
diff --git a/mojo/shell/connect_util.cc b/mojo/shell/connect_util.cc
index d33fad831330424111836dee56ad992b1c102226..6ad3f6ac51eb54b55e4e28823e3ff785e5910564 100644
--- a/mojo/shell/connect_util.cc
+++ b/mojo/shell/connect_util.cc
@@ -15,12 +15,12 @@ namespace shell {
ScopedMessagePipeHandle ConnectToInterfaceByName(
ApplicationManager* application_manager,
+ const Identity& source,
const GURL& application_url,
const std::string& interface_name) {
shell::mojom::InterfaceProviderPtr remote_interfaces;
scoped_ptr<ConnectToApplicationParams> params(new ConnectToApplicationParams);
- params->set_source(Identity(GURL("mojo://shell/"), std::string(),
- GetPermissiveCapabilityFilter()));
+ params->set_source(source);
params->SetTarget(Identity(application_url, std::string(),
GetPermissiveCapabilityFilter()));
params->set_remote_interfaces(GetProxy(&remote_interfaces));
« no previous file with comments | « mojo/shell/connect_util.h ('k') | mojo/shell/identity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698