Commit 2b9bd030 authored by tonyg@chromium.org's avatar tonyg@chromium.org

[Telemetry] Don't wait for browsers to stop after killing them.

This saves about 6s on my MBP.

BUG=388256

Review URL: https://codereview.chromium.org/473323003

Cr-Commit-Position: refs/heads/master@{#290123}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290123 0039d316-1c4b-4281-b951-d872f2087c98
parent 2b6a5802
...@@ -329,13 +329,7 @@ class DesktopBrowserBackend(chrome_browser_backend.ChromeBrowserBackend): ...@@ -329,13 +329,7 @@ class DesktopBrowserBackend(chrome_browser_backend.ChromeBrowserBackend):
# Shutdown aggressively if the above failed or if the profile is temporary. # Shutdown aggressively if the above failed or if the profile is temporary.
if self.IsBrowserRunning(): if self.IsBrowserRunning():
self._proc.kill() self._proc.kill()
self._proc = None
try:
util.WaitFor(lambda: not self.IsBrowserRunning(), timeout=10)
except util.TimeoutException:
raise Exception('Could not shutdown the browser.')
finally:
self._proc = None
if self._crash_service: if self._crash_service:
self._crash_service.kill() self._crash_service.kill()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment