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

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/android_memreport_profiler.py

Issue 23458037: Profiler.is_supported takes browser_type instead of options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix loading_profile.py Created 7 years, 3 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
Index: tools/telemetry/telemetry/core/platform/profiler/android_memreport_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/android_memreport_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/android_memreport_profiler.py
index 5d98adadd929ffc98b896ddc6b8ebad127f2eb07..2f241d0b44ad3b27a5205072b171351f1eb9a8e2 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/android_memreport_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/android_memreport_profiler.py
@@ -28,10 +28,10 @@ class AndroidMemReportProfiler(profiler.Profiler):
return 'android-memreport'
@classmethod
- def is_supported(cls, options):
- if not options:
+ def is_supported(cls, browser_type):
+ if browser_type == 'any':
return android_browser_finder.CanFindAvailableBrowsers()
- return options.browser_type.startswith('android')
+ return browser_type.startswith('android')
def CollectProfile(self):
self._memreport.communicate(input='\n')

Powered by Google App Engine
This is Rietveld 408576698