| Index: chrome/test/pyautolib/pyauto.py
|
| diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
|
| index 010595d947d2262b8b5cb2b2390e0e81f5fa72d1..2b0394e78b007527a479b93445409eb8104f5c6d 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:
|
|
|