Index: chromeos/dbus/bluetooth_input_client.cc |
diff --git a/chromeos/dbus/bluetooth_input_client.cc b/chromeos/dbus/bluetooth_input_client.cc |
index 62d370d664e4f1617ec871eef86616b2a70a8d34..ded2b30050df46adea968252199d04aabd4a7203 100644 |
--- a/chromeos/dbus/bluetooth_input_client.cc |
+++ b/chromeos/dbus/bluetooth_input_client.cc |
@@ -18,6 +18,15 @@ |
#include "dbus/object_proxy.h" |
#include "third_party/cros_system_api/dbus/service_constants.h" |
+namespace { |
+ |
+// The |Connect| DBus call needs a longer timeout than the default in order to |
+// give BlueZ enough time to return the timeout error response. |
+// See crosbug.com/37607 |
+const int kConnectTimeoutMs = 50 * 1000; |
+ |
+} // namespace |
+ |
namespace chromeos { |
const char BluetoothInputClient::kNoResponseError[] = |
@@ -92,7 +101,7 @@ class BluetoothInputClientImpl: public BluetoothInputClient, |
object_proxy->CallMethodWithErrorCallback( |
&method_call, |
- dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, |
+ kConnectTimeoutMs, |
base::Bind(&BluetoothInputClientImpl::OnConnect, |
weak_ptr_factory_.GetWeakPtr(), object_path, |
callback), |