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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py

Issue 322553003: Remove the id field of inspector_backend since no public caller uses it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py b/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py
index bd7680c073da3163389ecb311ae6b015ebe2c0e8..642257161125c80e6ff3de701ed97ef00f8072fa 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py
@@ -74,15 +74,11 @@ class InspectorBackend(inspector_websocket.InspectorWebsocket):
@property
def url(self):
for c in self._browser_backend.ListInspectableContexts():
- if c['id'] == self.id:
+ if c['id'] == self._context['id']:
return c['url']
return None
@property
- def id(self):
- return self._context['id']
-
- @property
def debugger_url(self):
return self._context['webSocketDebuggerUrl']
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698