Merge "Chimpchat: use shell timeout from DdmPreferences instead of hardcoding" into studio-1.0-dev
diff --git a/chimpchat/src/main/java/com/android/chimpchat/adb/AdbChimpDevice.java b/chimpchat/src/main/java/com/android/chimpchat/adb/AdbChimpDevice.java
index 70d76c4..2b9681c 100644
--- a/chimpchat/src/main/java/com/android/chimpchat/adb/AdbChimpDevice.java
+++ b/chimpchat/src/main/java/com/android/chimpchat/adb/AdbChimpDevice.java
@@ -21,6 +21,7 @@
 import com.google.common.collect.Maps;
 
 import com.android.ddmlib.AdbCommandRejectedException;
+import com.android.ddmlib.DdmPreferences;
 import com.android.ddmlib.IDevice;
 import com.android.ddmlib.InstallException;
 import com.android.ddmlib.ShellCommandUnresponsiveException;
@@ -263,9 +264,7 @@
 
     @Override
     public String shell(String cmd) {
-        // 5000 is the default timeout from the ddmlib.
-        // This timeout arg is needed to the backwards compatibility.
-        return shell(cmd, 5000);
+        return shell(cmd, DdmPreferences.getTimeOut());
     }
 
     @Override