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

Unified Diff: tools/telemetry/telemetry/core/tab_list.py

Issue 915173012: telemetry: Add a method to access tabs by key in TabList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/core/backends/chrome_inspector/inspector_backend_list.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/tab_list.py
diff --git a/tools/telemetry/telemetry/core/tab_list.py b/tools/telemetry/telemetry/core/tab_list.py
index 06cb667e1f6a3aa2dbacc51106f198afa92fce2f..da83d699d3968b12a22095eb4b8d2710a3d0c3e6 100644
--- a/tools/telemetry/telemetry/core/tab_list.py
+++ b/tools/telemetry/telemetry/core/tab_list.py
@@ -16,3 +16,8 @@ class TabList(object):
def __getitem__(self, index):
return self._tab_list_backend.__getitem__(index)
+
+ def GetTabById(self, identifier):
+ """The identifier of a tab can be accessed with tab.id."""
+ return self._tab_list_backend.GetTabById(identifier)
+
« no previous file with comments | « tools/telemetry/telemetry/core/backends/chrome_inspector/inspector_backend_list.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698