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

Unified Diff: mojo/application_manager/application_manager.cc

Issue 694413003: Add mojo_launcher (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Minor cleanup Created 6 years, 1 month 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/BUILD.gn ('k') | mojo/shell/BUILD.gn » ('j') | mojo/shell/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application_manager/application_manager.cc
diff --git a/mojo/application_manager/application_manager.cc b/mojo/application_manager/application_manager.cc
index e7398022e6dd7e687b1b57134c39ec0b67461740..208a879e4cddd486ede6f556a49994ba20d07b0e 100644
--- a/mojo/application_manager/application_manager.cc
+++ b/mojo/application_manager/application_manager.cc
@@ -223,8 +223,14 @@ void ApplicationManager::ConnectToClient(ShellImpl* shell_impl,
void ApplicationManager::RegisterExternalApplication(
const GURL& url,
ScopedMessagePipeHandle shell_handle) {
- url_to_shell_impl_[url] =
+ ShellImpl* shell_impl =
WeakBindToPipe(new ShellImpl(this, url), shell_handle.Pass());
+ url_to_shell_impl_[url] = shell_impl;
+ URLToArgsMap::const_iterator args_it = url_to_args_.find(url);
+ Array<String> args;
+ if (args_it != url_to_args_.end())
+ args = Array<String>::From(args_it->second);
+ shell_impl->client()->Initialize(args.Pass());
}
void ApplicationManager::RegisterLoadedApplication(
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/shell/BUILD.gn » ('j') | mojo/shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698