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

Unified Diff: tools/telemetry/telemetry/inspector_timeline.py

Issue 12079070: Rename tab_backend to inspector_backend. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/inspector_runtime.py ('k') | tools/telemetry/telemetry/tab_backend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/inspector_timeline.py
===================================================================
--- tools/telemetry/telemetry/inspector_timeline.py (revision 179778)
+++ tools/telemetry/telemetry/inspector_timeline.py (working copy)
@@ -20,8 +20,8 @@
def __exit__(self, *args):
self._tab.StopTimelineRecording()
- def __init__(self, tab_backend):
- self._tab_backend = tab_backend
+ def __init__(self, inspector_backend):
+ self._inspector_backend = inspector_backend
self._is_recording = False
self._timeline_model = None
@@ -34,7 +34,7 @@
return
self._is_recording = True
self._timeline_model = TimelineModel()
- self._tab_backend.RegisterDomain('Timeline',
+ self._inspector_backend.RegisterDomain('Timeline',
self._OnNotification, self._OnClose)
req = {'method': 'Timeline.start'}
self._SendSyncRequest(req)
@@ -46,10 +46,10 @@
self._timeline_model.DidFinishRecording()
req = {'method': 'Timeline.stop'}
self._SendSyncRequest(req)
- self._tab_backend.UnregisterDomain('Timeline')
+ self._inspector_backend.UnregisterDomain('Timeline')
def _SendSyncRequest(self, req, timeout=60):
- res = self._tab_backend.SyncRequest(req, timeout)
+ res = self._inspector_backend.SyncRequest(req, timeout)
if 'error' in res:
raise TabBackendException(res['error']['message'])
return res['result']
« no previous file with comments | « tools/telemetry/telemetry/inspector_runtime.py ('k') | tools/telemetry/telemetry/tab_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698