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

Unified Diff: services/user/user_shell_client.cc

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/user/user_shell_client.h ('k') | ui/views/mus/views_mus_test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/user/user_shell_client.cc
diff --git a/services/user/user_shell_client.cc b/services/user/user_shell_client.cc
index 77cd85078831dd10f20d535bc9f8a84d9c05e622..ff91495a90d98206db52f820d5364a24f276eefd 100644
--- a/services/user/user_shell_client.cc
+++ b/services/user/user_shell_client.cc
@@ -69,7 +69,7 @@ class UserShellClient::LevelDBServiceObjects
DISALLOW_COPY_AND_ASSIGN(LevelDBServiceObjects);
};
-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) {
@@ -88,16 +88,16 @@ UserShellClient::~UserShellClient() {
leveldb_service_runner_->DeleteSoon(FROM_HERE, leveldb_objects_.release());
}
-void UserShellClient::Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) {
+void UserShellClient::OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) {
user_objects_.reset(new UserShellClient::UserServiceObjects(
GetUserDirForUserId(identity.user_id())));
leveldb_objects_.reset(
new UserShellClient::LevelDBServiceObjects(leveldb_service_runner_));
}
-bool UserShellClient::AcceptConnection(shell::Connection* connection) {
+bool UserShellClient::OnConnect(shell::Connection* connection) {
connection->AddInterface<leveldb::mojom::LevelDBService>(this);
connection->AddInterface<mojom::UserService>(this);
return true;
« no previous file with comments | « services/user/user_shell_client.h ('k') | ui/views/mus/views_mus_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698