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

Unified Diff: services/user/user_shell_client.cc

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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') | no next file » | 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 ff91495a90d98206db52f820d5364a24f276eefd..75cac6dbca01fc127c60dcfc0876c9275db6e663 100644
--- a/services/user/user_shell_client.cc
+++ b/services/user/user_shell_client.cc
@@ -25,7 +25,7 @@ class UserShellClient::UserServiceObjects
~UserServiceObjects() {}
// Called on the |user_service_runner_|.
- void OnUserServiceRequest(shell::Connection* connection,
+ void OnUserServiceRequest(const shell::Identity& remote_identity,
mojom::UserServiceRequest request) {
if (!lock_table_)
lock_table_ = new filesystem::LockTable;
@@ -52,7 +52,7 @@ class UserShellClient::LevelDBServiceObjects
~LevelDBServiceObjects() {}
// Called on the |leveldb_service_runner_|.
- void OnLevelDBServiceRequest(shell::Connection* connection,
+ void OnLevelDBServiceRequest(const shell::Identity& remote_identity,
leveldb::mojom::LevelDBServiceRequest request) {
if (!leveldb_service_)
leveldb_service_.reset(new leveldb::LevelDBServiceImpl(task_runner_));
@@ -103,22 +103,22 @@ bool UserShellClient::OnConnect(shell::Connection* connection) {
return true;
}
-void UserShellClient::Create(shell::Connection* connection,
+void UserShellClient::Create(const shell::Identity& remote_identity,
mojom::UserServiceRequest request) {
user_service_runner_->PostTask(
FROM_HERE,
base::Bind(&UserShellClient::UserServiceObjects::OnUserServiceRequest,
- user_objects_->AsWeakPtr(), connection,
+ user_objects_->AsWeakPtr(), remote_identity,
base::Passed(&request)));
}
-void UserShellClient::Create(shell::Connection* connection,
+void UserShellClient::Create(const shell::Identity& remote_identity,
leveldb::mojom::LevelDBServiceRequest request) {
leveldb_service_runner_->PostTask(
FROM_HERE,
base::Bind(
&UserShellClient::LevelDBServiceObjects::OnLevelDBServiceRequest,
- leveldb_objects_->AsWeakPtr(), connection,
+ leveldb_objects_->AsWeakPtr(), remote_identity,
base::Passed(&request)));
}
« no previous file with comments | « services/user/user_shell_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698