Commit 5ca8a31b authored by Trent Apted's avatar Trent Apted Committed by Commit Bot

Remove unused `loadSingleFile` from chrome://media_app launch.js

Some tests were using this. Until they weren't.

Bug: b/163287386
Change-Id: I04c5ec745a3a5494cc9896ddc88750c515c5ceb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2344334
Commit-Queue: Patti <patricialor@chromium.org>
Auto-Submit: Trent Apted <tapted@chromium.org>
Reviewed-by: default avatarPatti <patricialor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796695}
parent a9119bd0
......@@ -320,20 +320,6 @@ async function saveBlobToFile(handle, data) {
await writer.close();
}
/**
* Loads a single file into the guest.
* @param {{file: !File, handle: !FileSystemFileHandle}} fileHandle
* @returns {!Promise<undefined>}
*/
async function loadSingleFile(fileHandle) {
/** @type {!FileDescriptor} */
const fd = {token: -1, file: fileHandle.file, handle: fileHandle.handle};
currentFiles.length = 0;
currentFiles.push(fd);
entryIndex = 0;
await sendFilesToGuest();
}
/**
* Warns if a given exception is "uncommon". That is, one that the guest might
* not provide UX for and should be dumped to console to give additional
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment