Index: content/browser/mojo/mojo_app_connection_impl.cc |
diff --git a/content/browser/mojo/mojo_app_connection_impl.cc b/content/browser/mojo/mojo_app_connection_impl.cc |
index 1cf214836f81b9279303cc382f7a62b71a42f22c..24434c64806fb09a7c4805039970a4594e98fdee 100644 |
--- a/content/browser/mojo/mojo_app_connection_impl.cc |
+++ b/content/browser/mojo/mojo_app_connection_impl.cc |
@@ -20,17 +20,19 @@ void OnGotInstanceID(uint32_t remote_id, uint32_t user_id) {} |
// static |
scoped_ptr<MojoAppConnection> MojoAppConnection::Create( |
+ uint32_t user_id, |
const std::string& name, |
const std::string& requestor_name) { |
return scoped_ptr<MojoAppConnection>( |
- new MojoAppConnectionImpl(name, requestor_name)); |
+ new MojoAppConnectionImpl(user_id, name, requestor_name)); |
} |
MojoAppConnectionImpl::MojoAppConnectionImpl( |
+ uint32_t user_id, |
const std::string& name, |
const std::string& requestor_name) { |
- MojoShellContext::ConnectToApplication( |
- name, requestor_name, mojo::GetProxy(&interfaces_), |
+ MojoShellContext::ConnectToApplicationWithUserId( |
+ user_id, name, requestor_name, mojo::GetProxy(&interfaces_), |
mojo::shell::mojom::InterfaceProviderPtr(), |
base::Bind(&OnGotInstanceID)); |
} |