diff options
-rw-r--r-- | BUILD.gn | 1 | ||||
-rw-r--r-- | update_manager/state_factory.cc | 12 |
2 files changed, 2 insertions, 11 deletions
@@ -81,7 +81,6 @@ pkg_config("target_defaults") { "USE_DBUS=${use.dbus}", "USE_FEC=0", "USE_HWID_OVERRIDE=${use.hwid_override}", - "USE_SHILL=1", ] include_dirs = [ # We need this include dir because we include all the local code as diff --git a/update_manager/state_factory.cc b/update_manager/state_factory.cc index a95a5a8f..21689744 100644 --- a/update_manager/state_factory.cc +++ b/update_manager/state_factory.cc @@ -27,18 +27,16 @@ #if USE_DBUS #include "update_engine/cros/dbus_connection.h" #endif // USE_DBUS +#include "update_engine/cros/shill_proxy.h" #include "update_engine/update_manager/fake_shill_provider.h" #include "update_engine/update_manager/real_config_provider.h" #include "update_engine/update_manager/real_device_policy_provider.h" #include "update_engine/update_manager/real_random_provider.h" +#include "update_engine/update_manager/real_shill_provider.h" #include "update_engine/update_manager/real_state.h" #include "update_engine/update_manager/real_system_provider.h" #include "update_engine/update_manager/real_time_provider.h" #include "update_engine/update_manager/real_updater_provider.h" -#if USE_SHILL -#include "update_engine/cros/shill_proxy.h" -#include "update_engine/update_manager/real_shill_provider.h" -#endif // USE_SHILL using std::unique_ptr; @@ -62,12 +60,8 @@ State* DefaultStateFactory( unique_ptr<RealDevicePolicyProvider> device_policy_provider( new RealDevicePolicyProvider(policy_provider)); #endif // USE_DBUS -#if USE_SHILL unique_ptr<RealShillProvider> shill_provider( new RealShillProvider(new chromeos_update_engine::ShillProxy(), clock)); -#else - unique_ptr<FakeShillProvider> shill_provider(new FakeShillProvider()); -#endif // USE_SHILL unique_ptr<RealRandomProvider> random_provider(new RealRandomProvider()); unique_ptr<RealSystemProvider> system_provider( new RealSystemProvider(system_state, kiosk_app_proxy)); @@ -78,9 +72,7 @@ State* DefaultStateFactory( if (!(config_provider->Init() && device_policy_provider->Init() && random_provider->Init() && -#if USE_SHILL shill_provider->Init() && -#endif // USE_SHILL system_provider->Init() && time_provider->Init() && updater_provider->Init())) { LOG(ERROR) << "Error initializing providers"; |