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

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

Issue 2623143002: DevTools: insert console message decorations in order
Patch Set: address design comments Created 3 years, 11 months 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 /* 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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698