Index: tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py |
diff --git a/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py |
index 97e2ac5681fec1b30f7ded03a69eb3975d55b8ce..53bdf1730e0bf5c5246a5f35940d1b11709e8ff0 100644 |
--- a/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py |
+++ b/tools/telemetry/telemetry/core/platform/profiler/tcpdump_profiler.py |
@@ -98,14 +98,14 @@ class TCPDumpProfiler(profiler.Profiler): |
return 'tcpdump' |
@classmethod |
- def is_supported(cls, options): |
- if options and options.browser_type.startswith('cros'): |
+ def is_supported(cls, browser_type): |
+ if browser_type.startswith('cros'): |
return False |
if sys.platform.startswith('linux'): |
return True |
- if not options: |
+ if browser_type == 'any': |
return android_browser_finder.CanFindAvailableBrowsers() |
- return options.browser_type.startswith('android') |
+ return browser_type.startswith('android') |
def CollectProfile(self): |
self._platform_profiler.CollectProfile() |