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

Unified Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: all done Created 4 years, 1 month 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/extensions/ExtensionTraceProvider.js
diff --git a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js
index 47eb94d51bbb6c644b5b7b83877ecc479638e23a..f0754adff562e6ed36016db0654bfb47a48d7678 100644
--- a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js
+++ b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionTraceProvider.js
@@ -1,26 +1,24 @@
/**
- * @constructor
- * @param {string} extensionOrigin
- * @param {string} id
- * @param {string} categoryName
- * @param {string} categoryTooltip
+ * @unrestricted
*/
-WebInspector.ExtensionTraceProvider = function(extensionOrigin, id, categoryName, categoryTooltip)
-{
+WebInspector.ExtensionTraceProvider = class {
+ /**
+ * @param {string} extensionOrigin
+ * @param {string} id
+ * @param {string} categoryName
+ * @param {string} categoryTooltip
+ */
+ constructor(extensionOrigin, id, categoryName, categoryTooltip) {
this._extensionOrigin = extensionOrigin;
this._id = id;
this._categoryName = categoryName;
this._categoryTooltip = categoryTooltip;
-};
-
-WebInspector.ExtensionTraceProvider.prototype = {
- start: function()
- {
- WebInspector.extensionServer.startTraceRecording(this._id);
- },
+ }
+ start() {
+ WebInspector.extensionServer.startTraceRecording(this._id);
+ }
- stop: function()
- {
- WebInspector.extensionServer.stopTraceRecording(this._id);
- }
+ stop() {
+ WebInspector.extensionServer.stopTraceRecording(this._id);
+ }
};

Powered by Google App Engine
This is Rietveld 408576698