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

Unified Diff: mash/task_viewer/task_viewer.h

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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/session/session.cc ('k') | mash/task_viewer/task_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/task_viewer/task_viewer.h
diff --git a/mash/task_viewer/task_viewer.h b/mash/task_viewer/task_viewer.h
index 7f8f9110d1e78c39ea4c0b50a9dc3f7f6ec098d3..cade4e719c90d02b8c1ab86ed4f25eece4473e03 100644
--- a/mash/task_viewer/task_viewer.h
+++ b/mash/task_viewer/task_viewer.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "mash/public/interfaces/launchable.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/tracing/public/cpp/tracing_impl.h"
namespace views {
@@ -24,7 +24,7 @@ class WindowManagerConnection;
namespace mash {
namespace task_viewer {
-class TaskViewer : public shell::ShellClient,
+class TaskViewer : public shell::Service,
public mojom::Launchable,
public shell::InterfaceFactory<mojom::Launchable> {
public:
@@ -34,11 +34,11 @@ class TaskViewer : public shell::ShellClient,
void RemoveWindow(views::Widget* widget);
private:
- // shell::ShellClient:
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override;
- bool AcceptConnection(shell::Connection* connection) override;
+ // shell::Service:
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override;
+ bool OnConnect(shell::Connection* connection) override;
// mojom::Launchable:
void Launch(uint32_t what, mojom::LaunchMode how) override;
« no previous file with comments | « mash/session/session.cc ('k') | mash/task_viewer/task_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698