summaryrefslogtreecommitdiffstats
path: root/content/browser/mojo/mojo_app_connection_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/mojo/mojo_app_connection_impl.cc')
-rw-r--r--content/browser/mojo/mojo_app_connection_impl.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/content/browser/mojo/mojo_app_connection_impl.cc b/content/browser/mojo/mojo_app_connection_impl.cc
index d643bbf..4f567d9 100644
--- a/content/browser/mojo/mojo_app_connection_impl.cc
+++ b/content/browser/mojo/mojo_app_connection_impl.cc
@@ -8,12 +8,20 @@
namespace content {
-scoped_ptr<MojoAppConnection> MojoAppConnection::Create(const GURL& url) {
- return scoped_ptr<MojoAppConnection>(new MojoAppConnectionImpl(url));
+const char kBrowserMojoAppUrl[] = "system:content_browser";
+
+// static
+scoped_ptr<MojoAppConnection> MojoAppConnection::Create(
+ const GURL& url,
+ const GURL& requestor_url) {
+ return scoped_ptr<MojoAppConnection>(
+ new MojoAppConnectionImpl(url, requestor_url));
}
-MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url) {
- MojoShellContext::ConnectToApplication(url, mojo::GetProxy(&services_));
+MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url,
+ const GURL& requestor_url) {
+ MojoShellContext::ConnectToApplication(url, requestor_url,
+ mojo::GetProxy(&services_));
}
MojoAppConnectionImpl::~MojoAppConnectionImpl() {