Index: chrome/test/pyautolib/pyauto.py |
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
index 010595d947d2262b8b5cb2b2390e0e81f5fa72d1..50080baca0cc1fd75601d6d976d355723d002a77 100755 |
--- a/chrome/test/pyautolib/pyauto.py |
+++ b/chrome/test/pyautolib/pyauto.py |
@@ -4602,7 +4602,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
'Chrome did not reopen the testing channel after login as guest.' |
self.SetUp() |
- def Login(self, username, password): |
+ def Login(self, username, password, use_cached_credentials=False): |
"""Login to chromeos. |
Waits until logged in and browser is ready. |
@@ -4625,12 +4625,11 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
'command': 'SubmitLoginForm', |
'username': username, |
'password': password, |
+ 'use_cached_credentials': use_cached_credentials, |
} |
self._GetResultFromJSONRequest(cmd_dict, windex=None) |
self.AddDomEventObserver('loginfail', automation_id=4444) |
try: |
- # TODO(craigdh): Add login failure events once PyAuto switches to mocked |
- # GAIA authentication. |
if self.GetNextEvent().get('name') == 'loginfail': |
raise JSONInterfaceError('Login denied by auth server.') |
except JSONInterfaceError as e: |