OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 } | 599 } |
600 | 600 |
601 /** | 601 /** |
602 * @param {!SDK.ExecutionContext} context | 602 * @param {!SDK.ExecutionContext} context |
603 * @param {?SDK.ServiceWorkerVersion} version | 603 * @param {?SDK.ServiceWorkerVersion} version |
604 */ | 604 */ |
605 _updateContextLabel(context, version) { | 605 _updateContextLabel(context, version) { |
606 var parsedUrl = context.origin.asParsedURL(); | 606 var parsedUrl = context.origin.asParsedURL(); |
607 var label = parsedUrl ? parsedUrl.lastPathComponentWithFragment() : context.
name; | 607 var label = parsedUrl ? parsedUrl.lastPathComponentWithFragment() : context.
name; |
608 if (version) | 608 if (version) |
609 context.setLabel(label + ' #' + version.id + ' (' + version.status + ')'); | 609 context.setLabel(label, version.id, version.status); |
610 else | 610 else |
611 context.setLabel(label); | 611 context.setLabel(label); |
612 } | 612 } |
613 }; | 613 }; |
OLD | NEW |