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

Side by Side Diff: chrome/browser/resources/md_downloads/downloads.js

Issue 2592573002: MD Downloads: add first meaningful paint metrics to UMA (Closed)
Patch Set: Created 4 years 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
OLDNEW
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(); 6 downloads.Manager.onLoad().then(function() {
7 document.fonts.load('bold 12px Roboto'); 7 requestIdleCallback(function() {
8 chrome.send('metricsHandler:recordTime', [
9 'Downloads.ResultsRenderedTime',
rkaplow 2016/12/20 21:53:01 extra s here - Download
Dan Beam 2016/12/20 22:02:47 Done. (dammit)
10 window.performance.now()
11 ]);
12 document.fonts.load('bold 12px Roboto');
13 });
14 });
8 }); 15 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | chrome/browser/resources/md_downloads/manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698