| Index: third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js b/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
|
| index e8594675bb6c29548a594c973561218d840e389c..c264d77c74023341d17753232b8edb1a0b8a1563 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/network_group_lookup/NetworkProductGroupLookup.js
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| /**
|
| + * @implements {Network.NetworkColumnExtensionInterface}
|
| * @implements {Network.NetworkGroupLookupInterface}
|
| */
|
| NetworkGroupLookup.NetworkProductGroupLookup = class {
|
| @@ -13,4 +14,27 @@ NetworkGroupLookup.NetworkProductGroupLookup = class {
|
| lookup(request) {
|
| return ProductRegistry.nameForUrl(request.parsedURL);
|
| }
|
| +
|
| + /**
|
| + * @override
|
| + * @param {!SDK.NetworkRequest} request
|
| + * @return {string}
|
| + */
|
| + lookupColumnValue(request) {
|
| + return this.lookup(request) || '';
|
| + }
|
| +
|
| + /**
|
| + * @override
|
| + * @param {!SDK.NetworkRequest} aRequest
|
| + * @param {!SDK.NetworkRequest} bRequest
|
| + * @return {number}
|
| + */
|
| + requestComparator(aRequest, bRequest) {
|
| + var aValue = this.lookupColumnValue(aRequest);
|
| + var bValue = this.lookupColumnValue(bRequest);
|
| + if (aValue === bValue)
|
| + return aRequest.indentityCompare(bRequest);
|
| + return aValue > bValue ? 1 : -1;
|
| + }
|
| };
|
|
|