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

Side by Side Diff: tools/perf/profile_creators/small_profile_creator.py

Issue 319813004: [Telemetry] Update copyright header style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove stray change 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/perf/profile_creators/__init__.py ('k') | tools/telemetry/PRESUBMIT.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 os 5 import os
6 6
7 from telemetry.core import util 7 from telemetry.core import util
8 from telemetry.page import page_set 8 from telemetry.page import page_set
9 from telemetry.page import profile_creator 9 from telemetry.page import profile_creator
10 10
11 11
(...skipping 14 matching lines...) Expand all
26 def TabForPage(self, page, browser): 26 def TabForPage(self, page, browser):
27 idx = page.page_set.pages.index(page) 27 idx = page.page_set.pages.index(page)
28 # The last _NUM_TABS pages open a new tab. 28 # The last _NUM_TABS pages open a new tab.
29 if idx <= (len(page.page_set.pages) - self._NUM_TABS): 29 if idx <= (len(page.page_set.pages) - self._NUM_TABS):
30 return browser.tabs[0] 30 return browser.tabs[0]
31 else: 31 else:
32 return browser.tabs.New() 32 return browser.tabs.New()
33 33
34 def MeasurePage(self, _, tab, results): 34 def MeasurePage(self, _, tab, results):
35 tab.WaitForDocumentReadyStateToBeComplete() 35 tab.WaitForDocumentReadyStateToBeComplete()
OLDNEW
« no previous file with comments | « tools/perf/profile_creators/__init__.py ('k') | tools/telemetry/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698