Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: tools/telemetry/telemetry/core/chrome/cros_browser_backend.py

Issue 22879002: Fix cros telemetry bustage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/chrome/cros_browser_backend.py
diff --git a/tools/telemetry/telemetry/core/chrome/cros_browser_backend.py b/tools/telemetry/telemetry/core/chrome/cros_browser_backend.py
index c5dede5b00b469c4a65ba8f37c35f71a808ac053..0f73add31194aa5a1a0a51c6a0e348d7ad444d56 100644
--- a/tools/telemetry/telemetry/core/chrome/cros_browser_backend.py
+++ b/tools/telemetry/telemetry/core/chrome/cros_browser_backend.py
@@ -140,14 +140,14 @@ class CrOSBrowserBackend(chrome_browser_backend.ChromeBrowserBackend):
@property
def pid(self):
result = self._GetChromeProcess()
- if 'pid' in result:
+ if result and 'pid' in result:
return result['pid']
return None
@property
def browser_directory(self):
result = self._GetChromeProcess()
- if 'path' in result:
+ if result and 'path' in result:
return result['path']
return None
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698