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

Unified Diff: services/user/user_shell_client.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 | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/user/user_shell_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/user/user_shell_client.h
diff --git a/services/user/user_shell_client.h b/services/user/user_shell_client.h
index 25db9cef923c0fcb42c459416bc20f5cdb39a18b..47dc921c3909e71156ab0b3a048864188974e8c6 100644
--- a/services/user/user_shell_client.h
+++ b/services/user/user_shell_client.h
@@ -11,18 +11,18 @@
#include "components/leveldb/public/interfaces/leveldb.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.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/user/public/interfaces/user_service.mojom.h"
namespace user_service {
-std::unique_ptr<shell::ShellClient> CreateUserShellClient(
+std::unique_ptr<shell::Service> CreateUserService(
scoped_refptr<base::SingleThreadTaskRunner> user_service_runner,
scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner,
const base::Closure& quit_closure);
class UserShellClient
- : public shell::ShellClient,
+ : public shell::Service,
public shell::InterfaceFactory<mojom::UserService>,
public shell::InterfaceFactory<leveldb::mojom::LevelDBService> {
public:
@@ -32,11 +32,11 @@ class UserShellClient
~UserShellClient() override;
private:
- // |ShellClient| override:
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override;
- bool AcceptConnection(shell::Connection* connection) override;
+ // |Service| override:
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override;
+ bool OnConnect(shell::Connection* connection) override;
// |InterfaceFactory<mojom::UserService>| implementation:
void Create(shell::Connection* connection,
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/user/user_shell_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698