Chromium Code Reviews| Index: scripts/slave/recipe_modules/chromium_android/api.py |
| diff --git a/scripts/slave/recipe_modules/chromium_android/api.py b/scripts/slave/recipe_modules/chromium_android/api.py |
| index 8d989dea1cd45651e19324acf1eb62ebe7c839f0..a7c9a8a25617f571aa781c9663239e2855f2bd0f 100644 |
| --- a/scripts/slave/recipe_modules/chromium_android/api.py |
| +++ b/scripts/slave/recipe_modules/chromium_android/api.py |
| @@ -502,8 +502,9 @@ class AndroidApi(recipe_api.RecipeApi): |
| 'android', |
| 'adb_install_apk.py'), |
| apk, '-v', '--blacklist-file', self.blacklist_file, |
| - '--adb-path', self.m.adb.adb_path(), |
| ] |
| + if int(self.m.chromium.get_version().get('MAJOR', 0)) > 50: |
|
martiniss
2016/06/13 23:17:30
this should be get('MAJOR', '0'), right?
jbudorick
2016/06/14 19:03:04
It doesn't matter -- int(0) and int('0') will both
|
| + install_cmd += ['--adb-path', self.m.adb.adb_path()] |
| if devices and isinstance(devices, list): |
| for d in devices: |
| install_cmd += ['-d', d] |