summaryrefslogtreecommitdiffstats
path: root/tools/perf/measurements/tab_switching.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/measurements/tab_switching.py')
-rw-r--r--tools/perf/measurements/tab_switching.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/measurements/tab_switching.py b/tools/perf/measurements/tab_switching.py
index d4110e1..22d9370 100644
--- a/tools/perf/measurements/tab_switching.py
+++ b/tools/perf/measurements/tab_switching.py
@@ -81,8 +81,7 @@ class TabSwitching(page_test.PageTest):
histogram_type, histogram_name, tab)
prev_histogram = first_histogram
- for i in xrange(len(tab.browser.tabs)):
- t = tab.browser.tabs[i]
+ for t in tab.browser.tabs:
t.Activate()
def _IsDone():
cur_histogram = histogram_util.GetHistogram(