Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "chromeos/dbus/dbus_clients_browser.h" | 5 #include "chromeos/dbus/dbus_clients_browser.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chromeos/dbus/arc_obb_mounter_client.h" | 8 #include "chromeos/dbus/arc_obb_mounter_client.h" |
| 9 #include "chromeos/dbus/auth_policy_client.h" | |
| 9 #include "chromeos/dbus/cros_disks_client.h" | 10 #include "chromeos/dbus/cros_disks_client.h" |
| 10 #include "chromeos/dbus/dbus_client_implementation_type.h" | 11 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 11 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
| 12 #include "chromeos/dbus/debug_daemon_client.h" | 13 #include "chromeos/dbus/debug_daemon_client.h" |
| 13 #include "chromeos/dbus/easy_unlock_client.h" | 14 #include "chromeos/dbus/easy_unlock_client.h" |
| 14 #include "chromeos/dbus/fake_arc_obb_mounter_client.h" | 15 #include "chromeos/dbus/fake_arc_obb_mounter_client.h" |
| 16 #include "chromeos/dbus/fake_auth_policy_client.h" | |
| 15 #include "chromeos/dbus/fake_debug_daemon_client.h" | 17 #include "chromeos/dbus/fake_debug_daemon_client.h" |
| 16 #include "chromeos/dbus/fake_easy_unlock_client.h" | 18 #include "chromeos/dbus/fake_easy_unlock_client.h" |
| 17 #include "chromeos/dbus/fake_image_burner_client.h" | 19 #include "chromeos/dbus/fake_image_burner_client.h" |
| 18 #include "chromeos/dbus/fake_lorgnette_manager_client.h" | 20 #include "chromeos/dbus/fake_lorgnette_manager_client.h" |
| 19 #include "chromeos/dbus/image_burner_client.h" | 21 #include "chromeos/dbus/image_burner_client.h" |
| 20 #include "chromeos/dbus/lorgnette_manager_client.h" | 22 #include "chromeos/dbus/lorgnette_manager_client.h" |
| 21 | 23 |
| 22 namespace chromeos { | 24 namespace chromeos { |
| 23 | 25 |
| 24 DBusClientsBrowser::DBusClientsBrowser(bool use_real_clients) { | 26 DBusClientsBrowser::DBusClientsBrowser(bool use_real_clients) { |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 43 | 45 |
| 44 if (use_real_clients) | 46 if (use_real_clients) |
| 45 image_burner_client_.reset(ImageBurnerClient::Create()); | 47 image_burner_client_.reset(ImageBurnerClient::Create()); |
| 46 else | 48 else |
| 47 image_burner_client_.reset(new FakeImageBurnerClient); | 49 image_burner_client_.reset(new FakeImageBurnerClient); |
| 48 | 50 |
| 49 if (use_real_clients) | 51 if (use_real_clients) |
| 50 lorgnette_manager_client_.reset(LorgnetteManagerClient::Create()); | 52 lorgnette_manager_client_.reset(LorgnetteManagerClient::Create()); |
| 51 else | 53 else |
| 52 lorgnette_manager_client_.reset(new FakeLorgnetteManagerClient); | 54 lorgnette_manager_client_.reset(new FakeLorgnetteManagerClient); |
| 55 | |
| 56 if (use_real_clients) | |
| 57 auth_policy_client_.reset(AuthPolicyClient::Create()); | |
|
hashimoto
2016/10/27 02:26:07
nit: Sort in the alphabetical order.
Roman Sorokin (ftl)
2016/10/27 13:10:46
Done.
| |
| 58 else | |
| 59 auth_policy_client_.reset(new FakeAuthPolicyClient); | |
| 53 } | 60 } |
| 54 | 61 |
| 55 DBusClientsBrowser::~DBusClientsBrowser() {} | 62 DBusClientsBrowser::~DBusClientsBrowser() {} |
| 56 | 63 |
| 57 void DBusClientsBrowser::Initialize(dbus::Bus* system_bus) { | 64 void DBusClientsBrowser::Initialize(dbus::Bus* system_bus) { |
| 58 DCHECK(DBusThreadManager::IsInitialized()); | 65 DCHECK(DBusThreadManager::IsInitialized()); |
| 59 | 66 |
| 60 arc_obb_mounter_client_->Init(system_bus); | 67 arc_obb_mounter_client_->Init(system_bus); |
| 68 auth_policy_client_->Init(system_bus); | |
| 61 cros_disks_client_->Init(system_bus); | 69 cros_disks_client_->Init(system_bus); |
| 62 debug_daemon_client_->Init(system_bus); | 70 debug_daemon_client_->Init(system_bus); |
| 63 easy_unlock_client_->Init(system_bus); | 71 easy_unlock_client_->Init(system_bus); |
| 64 image_burner_client_->Init(system_bus); | 72 image_burner_client_->Init(system_bus); |
| 65 lorgnette_manager_client_->Init(system_bus); | 73 lorgnette_manager_client_->Init(system_bus); |
| 66 } | 74 } |
| 67 | 75 |
| 68 } // namespace chromeos | 76 } // namespace chromeos |
| OLD | NEW |