Compile libupdate_engine without DBus.
Test: mma with and without BRILLO_USE_DBUS=1
Test: adb shell /data/nativetest/update_engine_unittests/update_engine_unittests
Bug: 28800946
Change-Id: If3b05e7bc7a123d3d9b0dcc4597d915249a2de33
diff --git a/real_system_state.h b/real_system_state.h
index 18a0d98..d6a9a95 100644
--- a/real_system_state.h
+++ b/real_system_state.h
@@ -122,8 +122,10 @@
inline bool system_rebooted() override { return system_rebooted_; }
private:
- // Real DBus proxies using the DBus connection.
+#if USE_LIBCROS
+ // LibCros proxy using the DBus connection.
LibCrosProxy libcros_proxy_;
+#endif // USE_LIBCROS
// Interface for the power manager.
std::unique_ptr<PowerManagerInterface> power_manager_;