| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 window.addEventListener('load', function() { | 5 window.addEventListener('load', function() { |
| 6 downloads.Manager.onLoad().then(function() { | 6 downloads.Manager.onLoad().then(function() { |
| 7 requestIdleCallback(function() { | 7 requestIdleCallback(function() { |
| 8 chrome.send('metricsHandler:recordTime', [ | 8 chrome.send( |
| 9 'Download.ResultsRenderedTime', | 9 'metricsHandler:recordTime', |
| 10 window.performance.now() | 10 ['Download.ResultsRenderedTime', window.performance.now()]); |
| 11 ]); | |
| 12 document.fonts.load('bold 12px Roboto'); | 11 document.fonts.load('bold 12px Roboto'); |
| 13 }); | 12 }); |
| 14 }); | 13 }); |
| 15 }); | 14 }); |
| OLD | NEW |