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

Unified Diff: shell/application_manager/shell_impl.cc

Issue 983113002: ApplicationManager: Use callback to get notified on application shutdown. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase after parameters fix Created 5 years, 9 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 | « shell/application_manager/shell_impl.h ('k') | shell/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/application_manager/shell_impl.cc
diff --git a/shell/application_manager/shell_impl.cc b/shell/application_manager/shell_impl.cc
index d519cba867884bfa273e075c48a581ff15212685..76c54da298cd2188866b8c2f7ef2e53ca731b53c 100644
--- a/shell/application_manager/shell_impl.cc
+++ b/shell/application_manager/shell_impl.cc
@@ -13,11 +13,11 @@ namespace shell {
ShellImpl::ShellImpl(ApplicationPtr application,
ApplicationManager* manager,
- const GURL& requested_url,
- const Identity& identity)
+ const Identity& identity,
+ const base::Closure& on_application_end)
: manager_(manager),
- requested_url_(requested_url),
identity_(identity),
+ on_application_end_(on_application_end),
application_(application.Pass()),
binding_(this) {
binding_.set_error_handler(this);
@@ -50,7 +50,7 @@ void ShellImpl::ConnectToApplication(const String& app_url,
return;
}
manager_->ConnectToApplication(app_gurl, identity_.url, services.Pass(),
- exposed_services.Pass());
+ exposed_services.Pass(), base::Closure());
}
void ShellImpl::OnConnectionError() {
« no previous file with comments | « shell/application_manager/shell_impl.h ('k') | shell/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698