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

Side by Side Diff: tools/telemetry/telemetry/tracing_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
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 4
5 import cStringIO 5 import cStringIO
6 import json 6 import json
7 import logging 7 import logging
8 import socket 8 import socket
9 import threading 9 import threading
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 logging.debug('got [%s]', data) 124 logging.debug('got [%s]', data)
125 res = json.loads(data) 125 res = json.loads(data)
126 if res['id'] != req['id']: 126 if res['id'] != req['id']:
127 logging.debug('Dropped reply: %s', json.dumps(res)) 127 logging.debug('Dropped reply: %s', json.dumps(res))
128 continue 128 continue
129 if res.get('response'): 129 if res.get('response'):
130 raise TracingUnsupportedException( 130 raise TracingUnsupportedException(
131 'Tracing not supported for this browser') 131 'Tracing not supported for this browser')
132 elif 'error' in res: 132 elif 'error' in res:
133 return 133 return
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/trace_result.py ('k') | tools/telemetry/telemetry/tracing_backend_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698