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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ServerTiming.js

Issue 2469113002: DevTools: clang format all the source + clang config landed. (Closed)
Patch Set: for landing Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 WebInspector.ServerTiming = class { 7 WebInspector.ServerTiming = class {
8 /** 8 /**
9 * @param {string} metric 9 * @param {string} metric
10 * @param {number} value 10 * @param {number} value
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 var serverTimings = rawServerTimingHeaders.reduce((memo, header) => { 50 var serverTimings = rawServerTimingHeaders.reduce((memo, header) => {
51 var timing = createFromHeaderValue(header.value); 51 var timing = createFromHeaderValue(header.value);
52 Array.prototype.push.apply(memo, timing); 52 Array.prototype.push.apply(memo, timing);
53 return memo; 53 return memo;
54 }, []); 54 }, []);
55 serverTimings.sort((a, b) => a.metric.toLowerCase().compareTo(b.metric.toLow erCase())); 55 serverTimings.sort((a, b) => a.metric.toLowerCase().compareTo(b.metric.toLow erCase()));
56 return serverTimings; 56 return serverTimings;
57 } 57 }
58 }; 58 };
59
60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698