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

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

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
index fb6a4595cebd59cd3aa7eec45d3f155709566bda..7bb3d646c21f41481cfac8b5377224fb66838efa 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
@@ -51,11 +51,12 @@ WebInspector.ServiceWorkerManager = function(target)
WebInspector.targetManager.addModelListener(WebInspector.RuntimeModel, WebInspector.RuntimeModel.Events.ExecutionContextCreated, this._executionContextCreated, this);
}
+/** @enum {symbol} */
WebInspector.ServiceWorkerManager.Events = {
- WorkersUpdated: "WorkersUpdated",
- RegistrationUpdated: "RegistrationUpdated",
- RegistrationErrorAdded: "RegistrationErrorAdded",
- RegistrationDeleted: "RegistrationDeleted"
+ WorkersUpdated: Symbol("WorkersUpdated"),
+ RegistrationUpdated: Symbol("RegistrationUpdated"),
+ RegistrationErrorAdded: Symbol("RegistrationErrorAdded"),
+ RegistrationDeleted: Symbol("RegistrationDeleted")
}
WebInspector.ServiceWorkerManager.prototype = {

Powered by Google App Engine
This is Rietveld 408576698