| Index: tools/telemetry/telemetry/core/chrome/cros_browser_backend.py
|
| ===================================================================
|
| --- tools/telemetry/telemetry/core/chrome/cros_browser_backend.py (revision 184154)
|
| +++ tools/telemetry/telemetry/core/chrome/cros_browser_backend.py (working copy)
|
| @@ -93,11 +93,6 @@
|
| def SetBrowser(self, browser):
|
| super(CrOSBrowserBackend, self).SetBrowser(browser)
|
|
|
| - # TODO(hartmanng): crbug.com/166886 (Remove these temporary hacks when
|
| - # _ListTabs is fixed)
|
| -
|
| - self._tab_list_backend.Reset()
|
| -
|
| # Wait for the login screen to disappear.
|
| def TabNotOobeLogin():
|
| tab = self._tab_list_backend.Get(0, None)
|
| @@ -105,10 +100,7 @@
|
| util.WaitFor(TabNotOobeLogin, 20)
|
|
|
| # Wait for the startup window to launch.
|
| - def StartupWindowLaunched():
|
| - self._tab_list_backend.Reset()
|
| - return len(self._tab_list_backend) != 0
|
| - util.WaitFor(StartupWindowLaunched, 20)
|
| + util.WaitFor(lambda: len(self._tab_list_backend) != 0, 20)
|
|
|
| # Close the startup window.
|
| self._tab_list_backend[0].Close()
|
|
|