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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/FileSystemMapping.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/workspace/FileSystemMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/FileSystemMapping.js b/third_party/WebKit/Source/devtools/front_end/workspace/FileSystemMapping.js
index 337d2136d33e7732ff3aec48f0896733020a40f8..40c3a10a6419a42e4f0da0c1bafb43ef22a78ea5 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/FileSystemMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/FileSystemMapping.js
@@ -41,9 +41,10 @@ WebInspector.FileSystemMapping = function()
this._loadFromSettings();
}
+/** @enum {symbol} */
WebInspector.FileSystemMapping.Events = {
- FileMappingAdded: "FileMappingAdded",
- FileMappingRemoved: "FileMappingRemoved"
+ FileMappingAdded: Symbol("FileMappingAdded"),
+ FileMappingRemoved: Symbol("FileMappingRemoved")
}
WebInspector.FileSystemMapping.prototype = {

Powered by Google App Engine
This is Rietveld 408576698