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

Unified Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.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/ExtensionRegistryStub.js
diff --git a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js
index 7e31b83cfe6a4a0b12dd14ed047557b62b4d24a6..5765bbe7ccad190178b91c661ba86c6af2cfd291 100644
--- a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js
+++ b/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js
@@ -27,16 +27,14 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
if (!window.InspectorExtensionRegistry) {
- /**
- * @constructor
- */
- WebInspector.InspectorExtensionRegistryStub = function() { };
-
- WebInspector.InspectorExtensionRegistryStub.prototype = {
- getExtensionsAsync: function() { }
- };
+ /**
+ * @unrestricted
+ */
+ WebInspector.InspectorExtensionRegistryStub = class {
+ getExtensionsAsync() {
+ }
+ };
- var InspectorExtensionRegistry = new WebInspector.InspectorExtensionRegistryStub();
+ var InspectorExtensionRegistry = new WebInspector.InspectorExtensionRegistryStub();
}

Powered by Google App Engine
This is Rietveld 408576698