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

Unified Diff: third_party/WebKit/Source/devtools/scripts/gulp/concatenate_protocols.js

Issue 2464463002: Revert of DevTools: clean up scripts folder (Closed)
Patch Set: Created 4 years, 2 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/scripts/gulp/concatenate_protocols.js
diff --git a/third_party/WebKit/Source/devtools/scripts/gulp/concatenate_protocols.js b/third_party/WebKit/Source/devtools/scripts/gulp/concatenate_protocols.js
deleted file mode 100644
index 6f0619dad4ad098cfa5fbd7a9677dbbde93d0520..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/devtools/scripts/gulp/concatenate_protocols.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var path = require("path");
-
-var jsonfile = require("jsonfile");
-
-var utils = require("../utils");
-
-module.exports = function main(protocols, output)
-{
- var domains = [];
- var version;
- for (var i = 0; i < protocols.length; i++) {
- var protocol = protocols[i];
- if (!utils.isFile(protocol))
- throw new Error(`Cannot find ${protocol}`);
- var json = require(protocol);
- domains = domains.concat(json.domains);
- version = json.version;
- }
- var combinedProtocol = {
- version,
- domains
- };
- jsonfile.writeFileSync(output, combinedProtocol, {spaces: 4});
-};

Powered by Google App Engine
This is Rietveld 408576698