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

Unified Diff: chrome/browser/resources/usb_internals/usb_internals.js

Issue 2470063003: Move importModules function to util.js (Closed)
Patch Set: Add suppress 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
« no previous file with comments | « chrome/browser/resources/plugins.js ('k') | chrome/test/data/webui/plugins_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/usb_internals/usb_internals.js
diff --git a/chrome/browser/resources/usb_internals/usb_internals.js b/chrome/browser/resources/usb_internals/usb_internals.js
index 7784ec02f9b1bc467e59f532cb3403b55cbddb61..a1c1a28c08b975ff3425b4825daae6b3adf2241b 100644
--- a/chrome/browser/resources/usb_internals/usb_internals.js
+++ b/chrome/browser/resources/usb_internals/usb_internals.js
@@ -59,19 +59,6 @@
event.preventDefault();
}
- /**
- * Helper to convert callback-based define() API to a promise-based API.
- * @param {!Array<string>} moduleNames
- * @return {!Promise}
- */
- function importModules(moduleNames) {
- return new Promise(function(resolve, reject) {
- define(moduleNames, function(var_args) {
- resolve(Array.prototype.slice.call(arguments, 0));
- });
- });
- }
-
function initializeProxies() {
return importModules([
'mojo/public/js/connection',
« no previous file with comments | « chrome/browser/resources/plugins.js ('k') | chrome/test/data/webui/plugins_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698