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

Unified Diff: content/common/mojo/mojo_shell_connection_impl.cc

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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 | « content/common/mojo/mojo_shell_connection_impl.h ('k') | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « content/common/mojo/mojo_shell_connection_impl.h ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698