Index: tools/perf/perf_tools/histogram_metric.py |
diff --git a/tools/perf/perf_tools/histogram_metric.py b/tools/perf/perf_tools/histogram_metric.py |
index d05394ec1b69f2b83e4ecffc65045954fde3631d..1df72571fac32d4ff17b64ebec6bf0584c05d309 100644 |
--- a/tools/perf/perf_tools/histogram_metric.py |
+++ b/tools/perf/perf_tools/histogram_metric.py |
@@ -36,7 +36,10 @@ class HistogramMetric(object): |
return 'getHistogram' |
def _GetHistogramFromDomAutomation(self, tab): |
- js = ('window.domAutomationController.%s ? ' |
- 'window.domAutomationController.%s("%s") : ""' % |
tonyg
2013/05/29 15:39:00
Looks like we lost the branch where neither domAut
|
- (self.histogram_function, self.histogram_function, self.name)) |
+ # TODO(jeremy): Remove references to |
+ # domAutomationController when we update the reference builds. |
+ js = ('(window.statsCollectionController ? ' |
+ 'statsCollectionController : ' |
+ 'domAutomationController).%s("%s")' % |
+ (self.histogram_function, self.name)) |
return tab.EvaluateJavaScript(js) |