OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 """Finds android browsers that can be controlled by telemetry.""" | 4 """Finds android browsers that can be controlled by telemetry.""" |
5 | 5 |
6 import logging | 6 import logging |
7 | 7 |
8 from telemetry import browser | 8 from telemetry import browser |
9 from telemetry import platform | 9 from telemetry import platform |
10 from telemetry import possible_browser | 10 from telemetry import possible_browser |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 logging.warn('') | 71 logging.warn('') |
72 logging.warn('P.S. Please, tell your manager how INANE this is.') | 72 logging.warn('P.S. Please, tell your manager how INANE this is.') |
73 else: | 73 else: |
74 logging.warn(str(ex)) | 74 logging.warn(str(ex)) |
75 return [] | 75 return [] |
76 | 76 |
77 if not cri.FileExistsOnDevice('/opt/google/chrome/chrome'): | 77 if not cri.FileExistsOnDevice('/opt/google/chrome/chrome'): |
78 logging.warn('Could not find a chrome on ' % cri.hostname) | 78 logging.warn('Could not find a chrome on ' % cri.hostname) |
79 | 79 |
80 return [PossibleCrOSBrowser('cros-chrome', options, cri)] | 80 return [PossibleCrOSBrowser('cros-chrome', options, cri)] |
OLD | NEW |