| Index: tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
|
| index e5eba03e00fbbc77b4c2ccd24156a1dbb9a24324..a94be76717ff3c4b3beece1c93921747f0cb0ba5 100644
|
| --- a/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
|
| +++ b/tools/telemetry/telemetry/core/platform/profiler/sample_profiler.py
|
| @@ -75,13 +75,13 @@ class SampleProfiler(profiler.Profiler):
|
| return 'sample'
|
|
|
| @classmethod
|
| - def is_supported(cls, options):
|
| + def is_supported(cls, browser_type):
|
| if sys.platform != 'darwin':
|
| return False
|
| - if not options:
|
| + if browser_type == 'any':
|
| return True
|
| - return (not options.browser_type.startswith('android') and
|
| - not options.browser_type.startswith('cros'))
|
| + return (not browser_type.startswith('android') and
|
| + not browser_type.startswith('cros'))
|
|
|
| def CollectProfile(self):
|
| output_paths = []
|
|
|