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

Side by Side Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 2286423002: chromeos: Remove unused AP manager D-Bus client library (Closed)
Patch Set: rebase Created 4 years, 3 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 | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_ap_manager_client.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chromeos/dbus/dbus_thread_manager.h" 5 #include "chromeos/dbus/dbus_thread_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/sys_info.h" 11 #include "base/sys_info.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "chromeos/chromeos_switches.h" 13 #include "chromeos/chromeos_switches.h"
14 #include "chromeos/dbus/ap_manager_client.h"
15 #include "chromeos/dbus/arc_obb_mounter_client.h" 14 #include "chromeos/dbus/arc_obb_mounter_client.h"
16 #include "chromeos/dbus/cras_audio_client.h" 15 #include "chromeos/dbus/cras_audio_client.h"
17 #include "chromeos/dbus/cros_disks_client.h" 16 #include "chromeos/dbus/cros_disks_client.h"
18 #include "chromeos/dbus/cryptohome_client.h" 17 #include "chromeos/dbus/cryptohome_client.h"
19 #include "chromeos/dbus/dbus_client.h" 18 #include "chromeos/dbus/dbus_client.h"
20 #include "chromeos/dbus/debug_daemon_client.h" 19 #include "chromeos/dbus/debug_daemon_client.h"
21 #include "chromeos/dbus/easy_unlock_client.h" 20 #include "chromeos/dbus/easy_unlock_client.h"
22 #include "chromeos/dbus/gsm_sms_client.h" 21 #include "chromeos/dbus/gsm_sms_client.h"
23 #include "chromeos/dbus/image_burner_client.h" 22 #include "chromeos/dbus/image_burner_client.h"
24 #include "chromeos/dbus/introspectable_client.h" 23 #include "chromeos/dbus/introspectable_client.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 VLOG(1) << "DBusThreadManager destroyed"; 97 VLOG(1) << "DBusThreadManager destroyed";
99 } else { 98 } else {
100 LOG(FATAL) << "~DBusThreadManager() called outside of Shutdown()"; 99 LOG(FATAL) << "~DBusThreadManager() called outside of Shutdown()";
101 } 100 }
102 } 101 }
103 102
104 dbus::Bus* DBusThreadManager::GetSystemBus() { 103 dbus::Bus* DBusThreadManager::GetSystemBus() {
105 return system_bus_.get(); 104 return system_bus_.get();
106 } 105 }
107 106
108 ApManagerClient* DBusThreadManager::GetApManagerClient() {
109 return client_bundle_->ap_manager_client();
110 }
111
112 ArcObbMounterClient* DBusThreadManager::GetArcObbMounterClient() { 107 ArcObbMounterClient* DBusThreadManager::GetArcObbMounterClient() {
113 return client_bundle_->arc_obb_mounter_client(); 108 return client_bundle_->arc_obb_mounter_client();
114 } 109 }
115 110
116 CrasAudioClient* DBusThreadManager::GetCrasAudioClient() { 111 CrasAudioClient* DBusThreadManager::GetCrasAudioClient() {
117 return client_bundle_->cras_audio_client(); 112 return client_bundle_->cras_audio_client();
118 } 113 }
119 114
120 CrosDisksClient* DBusThreadManager::GetCrosDisksClient() { 115 CrosDisksClient* DBusThreadManager::GetCrosDisksClient() {
121 return client_bundle_->cros_disks_client(); 116 return client_bundle_->cros_disks_client();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 221
227 SystemClockClient* DBusThreadManager::GetSystemClockClient() { 222 SystemClockClient* DBusThreadManager::GetSystemClockClient() {
228 return client_bundle_->system_clock_client(); 223 return client_bundle_->system_clock_client();
229 } 224 }
230 225
231 UpdateEngineClient* DBusThreadManager::GetUpdateEngineClient() { 226 UpdateEngineClient* DBusThreadManager::GetUpdateEngineClient() {
232 return client_bundle_->update_engine_client(); 227 return client_bundle_->update_engine_client();
233 } 228 }
234 229
235 void DBusThreadManager::InitializeClients() { 230 void DBusThreadManager::InitializeClients() {
236 GetApManagerClient()->Init(GetSystemBus());
237 GetArcObbMounterClient()->Init(GetSystemBus()); 231 GetArcObbMounterClient()->Init(GetSystemBus());
238 GetCrasAudioClient()->Init(GetSystemBus()); 232 GetCrasAudioClient()->Init(GetSystemBus());
239 GetCrosDisksClient()->Init(GetSystemBus()); 233 GetCrosDisksClient()->Init(GetSystemBus());
240 GetCryptohomeClient()->Init(GetSystemBus()); 234 GetCryptohomeClient()->Init(GetSystemBus());
241 GetDebugDaemonClient()->Init(GetSystemBus()); 235 GetDebugDaemonClient()->Init(GetSystemBus());
242 GetEasyUnlockClient()->Init(GetSystemBus()); 236 GetEasyUnlockClient()->Init(GetSystemBus());
243 GetGsmSMSClient()->Init(GetSystemBus()); 237 GetGsmSMSClient()->Init(GetSystemBus());
244 GetImageBurnerClient()->Init(GetSystemBus()); 238 GetImageBurnerClient()->Init(GetSystemBus());
245 GetIntrospectableClient()->Init(GetSystemBus()); 239 GetIntrospectableClient()->Init(GetSystemBus());
246 GetLorgnetteManagerClient()->Init(GetSystemBus()); 240 GetLorgnetteManagerClient()->Init(GetSystemBus());
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 std::move(client); 532 std::move(client);
539 } 533 }
540 534
541 void DBusThreadManagerSetter::SetUpdateEngineClient( 535 void DBusThreadManagerSetter::SetUpdateEngineClient(
542 std::unique_ptr<UpdateEngineClient> client) { 536 std::unique_ptr<UpdateEngineClient> client) {
543 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = 537 DBusThreadManager::Get()->client_bundle_->update_engine_client_ =
544 std::move(client); 538 std::move(client);
545 } 539 }
546 540
547 } // namespace chromeos 541 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_ap_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698