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

Side by Side Diff: tools/telemetry/telemetry/tab_list_backend.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/telemetry/telemetry/tab_list.py ('k') | tools/telemetry/telemetry/tab_test_case.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/tab_list.py ('k') | tools/telemetry/telemetry/tab_test_case.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698