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

Unified Diff: third_party/WebKit/Source/devtools/scripts/utils.js

Issue 2489033003: DevTools: hosted mode fallback if generated files aren't uploaded yet (Closed)
Patch Set: fix the git grep so it works on full & front-end checkout 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/scripts/utils.js
diff --git a/third_party/WebKit/Source/devtools/scripts/utils.js b/third_party/WebKit/Source/devtools/scripts/utils.js
index a0df35a1f5f23aa987bec2b87ffa965ce2932bc0..51bb66a13cc62564243a2d42012cccff113bf962 100644
--- a/third_party/WebKit/Source/devtools/scripts/utils.js
+++ b/third_party/WebKit/Source/devtools/scripts/utils.js
@@ -7,6 +7,7 @@ var http = require("http");
var https = require("https");
var path = require("path");
var parseURL = require("url").parse;
+var shell = require("child_process").execSync;
var Stream = require("stream").Transform;
function fetch(url)
@@ -121,6 +122,11 @@ function includes(sequence, target)
return sequence.indexOf(target) > -1;
}
+function shellOutput(command)
+{
+ return shell(command).toString().trim();
+}
+
module.exports = {
fetch,
atob,
@@ -130,4 +136,5 @@ module.exports = {
copyRecursive,
removeRecursive,
includes,
+ shellOutput,
};

Powered by Google App Engine
This is Rietveld 408576698