Index: chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc |
diff --git a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc |
index 8b5f00a169df1bf6f9107f403b4354bfab4b32ea..68467355912a47fa9c7963b1decb503bb519b57e 100644 |
--- a/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc |
+++ b/chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc |
@@ -18,7 +18,6 @@ |
#include "chromeos/dbus/ibus/mock_ibus_engine_service.h" |
#include "chromeos/dbus/ibus/mock_ibus_input_context_client.h" |
#include "chromeos/dbus/ibus/mock_ibus_panel_service.h" |
-#include "dbus/fake_bus.h" |
namespace chromeos { |
@@ -60,8 +59,8 @@ void MockDBusThreadManagerWithoutGMock::RemoveObserver( |
void MockDBusThreadManagerWithoutGMock::InitIBusBus( |
const std::string& ibus_address, |
const base::Closure& closure) { |
- dbus::Bus::Options options; |
- ibus_bus_ = new dbus::FakeBus(options); |
+ // Non-null bus address is used to ensure the connection to ibus-daemon. |
+ ibus_bus_ = reinterpret_cast<dbus::Bus*>(0xdeadbeef); |
} |
dbus::Bus* MockDBusThreadManagerWithoutGMock::GetSystemBus() { |