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

Side by Side Diff: services/user/user_shell_client.cc

Issue 2080083002: Revert of Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « services/user/user_shell_client.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/user/user_shell_client.h" 5 #include "services/user/user_shell_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "components/filesystem/lock_table.h" 10 #include "components/filesystem/lock_table.h"
11 #include "components/leveldb/leveldb_service_impl.h" 11 #include "components/leveldb/leveldb_service_impl.h"
12 #include "mojo/public/cpp/bindings/callback.h"
12 #include "services/shell/public/cpp/connection.h" 13 #include "services/shell/public/cpp/connection.h"
13 #include "services/user/user_id_map.h" 14 #include "services/user/user_id_map.h"
14 #include "services/user/user_service.h" 15 #include "services/user/user_service.h"
15 16
16 namespace user_service { 17 namespace user_service {
17 18
18 class UserShellClient::UserServiceObjects 19 class UserShellClient::UserServiceObjects
19 : public base::SupportsWeakPtr<UserServiceObjects> { 20 : public base::SupportsWeakPtr<UserServiceObjects> {
20 public: 21 public:
21 // Created on the main thread. 22 // Created on the main thread.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 leveldb::mojom::LevelDBServiceRequest request) { 117 leveldb::mojom::LevelDBServiceRequest request) {
117 leveldb_service_runner_->PostTask( 118 leveldb_service_runner_->PostTask(
118 FROM_HERE, 119 FROM_HERE,
119 base::Bind( 120 base::Bind(
120 &UserShellClient::LevelDBServiceObjects::OnLevelDBServiceRequest, 121 &UserShellClient::LevelDBServiceObjects::OnLevelDBServiceRequest,
121 leveldb_objects_->AsWeakPtr(), connection, 122 leveldb_objects_->AsWeakPtr(), connection,
122 base::Passed(&request))); 123 base::Passed(&request)));
123 } 124 }
124 125
125 } // namespace user_service 126 } // namespace user_service
OLDNEW
« no previous file with comments | « services/user/user_shell_client.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698