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

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

Issue 2433363004: Chromad: added AD Join ui, authpolicy_client (Closed)
Patch Set: nit Created 4 years, 1 month 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
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/arc_obb_mounter_client.h" 14 #include "chromeos/dbus/arc_obb_mounter_client.h"
15 #include "chromeos/dbus/auth_policy_client.h"
15 #include "chromeos/dbus/cras_audio_client.h" 16 #include "chromeos/dbus/cras_audio_client.h"
16 #include "chromeos/dbus/cros_disks_client.h" 17 #include "chromeos/dbus/cros_disks_client.h"
17 #include "chromeos/dbus/cryptohome_client.h" 18 #include "chromeos/dbus/cryptohome_client.h"
18 #include "chromeos/dbus/dbus_client.h" 19 #include "chromeos/dbus/dbus_client.h"
19 #include "chromeos/dbus/dbus_clients_browser.h" 20 #include "chromeos/dbus/dbus_clients_browser.h"
20 #include "chromeos/dbus/dbus_clients_common.h" 21 #include "chromeos/dbus/dbus_clients_common.h"
21 #include "chromeos/dbus/debug_daemon_client.h" 22 #include "chromeos/dbus/debug_daemon_client.h"
22 #include "chromeos/dbus/easy_unlock_client.h" 23 #include "chromeos/dbus/easy_unlock_client.h"
23 #include "chromeos/dbus/gsm_sms_client.h" 24 #include "chromeos/dbus/gsm_sms_client.h"
24 #include "chromeos/dbus/image_burner_client.h" 25 #include "chromeos/dbus/image_burner_client.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 103
103 dbus::Bus* DBusThreadManager::GetSystemBus() { 104 dbus::Bus* DBusThreadManager::GetSystemBus() {
104 return system_bus_.get(); 105 return system_bus_.get();
105 } 106 }
106 107
107 ArcObbMounterClient* DBusThreadManager::GetArcObbMounterClient() { 108 ArcObbMounterClient* DBusThreadManager::GetArcObbMounterClient() {
108 return clients_browser_ ? clients_browser_->arc_obb_mounter_client_.get() 109 return clients_browser_ ? clients_browser_->arc_obb_mounter_client_.get()
109 : nullptr; 110 : nullptr;
110 } 111 }
111 112
113 AuthPolicyClient* DBusThreadManager::GetAuthPolicyClient() {
114 return clients_browser_ ? clients_browser_->auth_policy_client_.get()
115 : nullptr;
116 }
117
112 CrasAudioClient* DBusThreadManager::GetCrasAudioClient() { 118 CrasAudioClient* DBusThreadManager::GetCrasAudioClient() {
113 return clients_common_->cras_audio_client_.get(); 119 return clients_common_->cras_audio_client_.get();
114 } 120 }
115 121
116 CrosDisksClient* DBusThreadManager::GetCrosDisksClient() { 122 CrosDisksClient* DBusThreadManager::GetCrosDisksClient() {
117 return clients_browser_ ? clients_browser_->cros_disks_client_.get() 123 return clients_browser_ ? clients_browser_->cros_disks_client_.get()
118 : nullptr; 124 : nullptr;
119 } 125 }
120 126
121 CryptohomeClient* DBusThreadManager::GetCryptohomeClient() { 127 CryptohomeClient* DBusThreadManager::GetCryptohomeClient() {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 std::move(client); 370 std::move(client);
365 } 371 }
366 372
367 void DBusThreadManagerSetter::SetUpdateEngineClient( 373 void DBusThreadManagerSetter::SetUpdateEngineClient(
368 std::unique_ptr<UpdateEngineClient> client) { 374 std::unique_ptr<UpdateEngineClient> client) {
369 DBusThreadManager::Get()->clients_common_->update_engine_client_ = 375 DBusThreadManager::Get()->clients_common_->update_engine_client_ =
370 std::move(client); 376 std::move(client);
371 } 377 }
372 378
373 } // namespace chromeos 379 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698