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 import httplib | 4 import httplib |
5 import json | 5 import json |
6 import socket | 6 import socket |
7 import urllib2 | 7 import urllib2 |
8 import weakref | 8 import weakref |
9 | 9 |
10 from telemetry import browser_gone_exception | 10 from telemetry import browser_gone_exception |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 self._tab_list = [t for t in self._tab_list | 136 self._tab_list = [t for t in self._tab_list |
137 if t in self._tab_dict or t in new_tab_list] | 137 if t in self._tab_dict or t in new_tab_list] |
138 self._tab_list += [t for t in new_tab_list | 138 self._tab_list += [t for t in new_tab_list |
139 if t is not None and t not in self._tab_list] | 139 if t is not None and t not in self._tab_list] |
140 | 140 |
141 def _FindTabInfo(self, debugger_url): | 141 def _FindTabInfo(self, debugger_url): |
142 for tab_info in self._ListTabs(): | 142 for tab_info in self._ListTabs(): |
143 if tab_info.get('webSocketDebuggerUrl') == debugger_url: | 143 if tab_info.get('webSocketDebuggerUrl') == debugger_url: |
144 return tab_info | 144 return tab_info |
145 return None | 145 return None |
OLD | NEW |