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

Unified Diff: mash/shell/shell_application_delegate.cc

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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 | « mash/shell/shell_application_delegate.h ('k') | mash/task_viewer/task_viewer_application_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/shell/shell_application_delegate.cc
diff --git a/mash/shell/shell_application_delegate.cc b/mash/shell/shell_application_delegate.cc
index 560eddea526daa362b7e3a020ded997e154e6f14..6f919d5ffb1f61fcd5c9538561593a3f75b24b99 100644
--- a/mash/shell/shell_application_delegate.cc
+++ b/mash/shell/shell_application_delegate.cc
@@ -5,7 +5,7 @@
#include "mash/shell/shell_application_delegate.h"
#include "base/bind.h"
-#include "mojo/shell/public/cpp/application_connection.h"
+#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/shell.h"
namespace mash {
@@ -27,8 +27,7 @@ void ShellApplicationDelegate::Initialize(mojo::Shell* shell,
StartQuickLaunch();
}
-bool ShellApplicationDelegate::AcceptConnection(
- mojo::ApplicationConnection* connection) {
+bool ShellApplicationDelegate::AcceptConnection(mojo::Connection* connection) {
connection->AddService<mash::shell::mojom::Shell>(this);
return true;
}
@@ -61,7 +60,7 @@ void ShellApplicationDelegate::UnlockScreen() {
}
void ShellApplicationDelegate::Create(
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
mojo::InterfaceRequest<mash::shell::mojom::Shell> r) {
bindings_.AddBinding(this, std::move(r));
}
@@ -117,7 +116,7 @@ void ShellApplicationDelegate::StartRestartableService(
const base::Closure& restart_callback) {
// TODO(beng): This would be the place to insert logic that counted restarts
// to avoid infinite crash-restart loops.
- scoped_ptr<mojo::ApplicationConnection> connection =
+ scoped_ptr<mojo::Connection> connection =
shell_->ConnectToApplication(url);
connection->SetRemoteServiceProviderConnectionErrorHandler(restart_callback);
connections_[url] = std::move(connection);
« no previous file with comments | « mash/shell/shell_application_delegate.h ('k') | mash/task_viewer/task_viewer_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698