| 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 desktop browsers that can be controlled by telemetry.""" | 4 """Finds desktop browsers that can be controlled by telemetry.""" |
| 5 | 5 |
| 6 import logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 chromium_app_name, False): | 152 chromium_app_name, False): |
| 153 break | 153 break |
| 154 | 154 |
| 155 if len(browsers) and not has_display: | 155 if len(browsers) and not has_display: |
| 156 logging.warning( | 156 logging.warning( |
| 157 'Found (%s), but you do not have a DISPLAY environment set.' % | 157 'Found (%s), but you do not have a DISPLAY environment set.' % |
| 158 ','.join([b.browser_type for b in browsers])) | 158 ','.join([b.browser_type for b in browsers])) |
| 159 return [] | 159 return [] |
| 160 | 160 |
| 161 return browsers | 161 return browsers |
| OLD | NEW |