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

Unified Diff: trunk/src/tools/telemetry/telemetry/core/util.py

Issue 127533002: Revert 243469 "[telemetry] Implement per-pixel algorithms in Bit..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « trunk/src/tools/telemetry/telemetry/core/tab.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/tools/telemetry/telemetry/core/util.py
===================================================================
--- trunk/src/tools/telemetry/telemetry/core/util.py (revision 243477)
+++ trunk/src/tools/telemetry/telemetry/core/util.py (working copy)
@@ -1,7 +1,6 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import imp
import inspect
import logging
import os
@@ -146,7 +145,6 @@
for build_type in build_types:
yield build_dir, build_type
-
def FindSupportBinary(binary_name, executable=True):
"""Returns the path to the given binary name."""
# TODO(tonyg/dtu): This should support finding binaries in cloud storage.
@@ -166,23 +164,3 @@
command_mtime = candidate_mtime
return command
-
-
-def FindSupportModule(module_name):
- """Like FindSupportBinary but uses imp.find_module to find a Python module."""
- module = None
- module_mtime = 0
-
- chrome_root = GetChromiumSrcDir()
- for build_dir, build_type in GetBuildDirectories():
- path = os.path.join(chrome_root, build_dir, build_type)
- try:
- candidate = imp.find_module(module_name, [path])
- except ImportError:
- continue
- candidate_mtime = os.stat(candidate[1]).st_mtime
- if candidate_mtime > module_mtime:
- module = candidate
- module_mtime = candidate_mtime
-
- return module
« no previous file with comments | « trunk/src/tools/telemetry/telemetry/core/tab.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698