Retry when login fails due to Handshake error.

BUG=chromium:349447
TEST=manual

Change-Id: Ibe870ad99fbea601c3c566c73cbc1d0c7ab9e1d8
Reviewed-on: https://chromium-review.googlesource.com/190891
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
diff --git a/client/common_lib/cros/chrome.py b/client/common_lib/cros/chrome.py
index 40acff4..65cdae0 100644
--- a/client/common_lib/cros/chrome.py
+++ b/client/common_lib/cros/chrome.py
@@ -17,7 +17,7 @@
 
 
     def __init__(self, logged_in=True, extension_paths=[], autotest_ext=False,
-                 is_component=True, num_tries=1, extra_browser_args=None,
+                 is_component=True, num_tries=3, extra_browser_args=None,
                  auto_login=True, username=None, password=None):
         """
         Constructor of telemetry wrapper.
@@ -28,8 +28,7 @@
                              invoke chrome.autotestPrivate.
         @param is_component: Whether extensions should be loaded as component
                              extensions.
-        @param num_tries: Number of attempts to log in. (Temporary for
-                          debugging).
+        @param num_tries: Number of attempts to log in.
         @param extra_browser_args: Additional argument(s) to pass to the
             browser. It can be a string or a list.
         @param auto_login: Does not login automatically if this is False.