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

Unified Diff: components/filesystem/file_system_app.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 | « components/arc/arc_bridge_bootstrap.cc ('k') | components/filesystem/file_system_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/file_system_app.h
diff --git a/components/filesystem/file_system_app.h b/components/filesystem/file_system_app.h
index 452686a31099cc66201b17993f8f608bfa626719..be424c7f3b98860447082431064372afe3b2ebda 100644
--- a/components/filesystem/file_system_app.h
+++ b/components/filesystem/file_system_app.h
@@ -11,7 +11,7 @@
#include "components/filesystem/lock_table.h"
#include "components/filesystem/public/interfaces/file_system.mojom.h"
#include "services/shell/public/cpp/interface_factory.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 mojo {
@@ -20,7 +20,7 @@ class Connector;
namespace filesystem {
-class FileSystemApp : public shell::ShellClient,
+class FileSystemApp : public shell::Service,
public shell::InterfaceFactory<mojom::FileSystem> {
public:
FileSystemApp();
@@ -30,11 +30,12 @@ class FileSystemApp : public shell::ShellClient,
// Gets the system specific toplevel profile directory.
static base::FilePath GetUserDataDir();
- // |shell::ShellClient| override:
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override;
- bool AcceptConnection(shell::Connection* connection) override;
+ // |shell::Service| override:
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override;
+ bool OnConnect(shell::Connection* connection) override;
+
// |InterfaceFactory<Files>| implementation:
void Create(shell::Connection* connection,
mojo::InterfaceRequest<mojom::FileSystem> request) override;
« no previous file with comments | « components/arc/arc_bridge_bootstrap.cc ('k') | components/filesystem/file_system_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698