Index: content/common/mojo/mojo_shell_connection_impl.cc |
diff --git a/content/common/mojo/mojo_shell_connection_impl.cc b/content/common/mojo/mojo_shell_connection_impl.cc |
index 93ba749fd178f6e4dffcdbda6db118f35ea842f5..2fa3e78ad0eb02f3dee3728a8361e82900d318fb 100644 |
--- a/content/common/mojo/mojo_shell_connection_impl.cc |
+++ b/content/common/mojo/mojo_shell_connection_impl.cc |
@@ -145,7 +145,13 @@ void MojoShellConnectionImpl::SetConnectionLostClosure( |
void MojoShellConnectionImpl::AddEmbeddedShellClient( |
std::unique_ptr<shell::ShellClient> shell_client) { |
- embedded_shell_clients_.push_back(std::move(shell_client)); |
+ embedded_shell_clients_.push_back(shell_client.get()); |
+ owned_shell_clients_.push_back(std::move(shell_client)); |
+} |
+ |
+void MojoShellConnectionImpl::AddEmbeddedShellClient( |
+ shell::ShellClient* shell_client) { |
+ embedded_shell_clients_.push_back(shell_client); |
} |
void MojoShellConnectionImpl::AddEmbeddedService( |