Commit 3d9a10d1 authored by dpapad's avatar dpapad Committed by Commit Bot

CrOS video player: Remove i18n_template_no_process.js dependency.

The dependency does not seem to be used, and it is deprecated.

Bug: 1128151
Change-Id: I1869c968a5cec33d3e08a23da2db598773c7900f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443942
Commit-Queue: Noel Gordon <noel@chromium.org>
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#813476}
parent be406827
......@@ -9,12 +9,10 @@
* @return {Promise} Promise to be fulfilled with on success.
*/
testcase.checkInitialElements = function() {
var test = openVideos('local', 'downloads', [ENTRIES.world]);
const test = openVideos('local', 'downloads', [ENTRIES.world]);
return test.then(function(args) {
var appId = args[0];
var videoPlayer = args[1];
const appId = args[0];
return Promise.all([
remoteCallVideoPlayer.waitForElement(appId, 'html[i18n-processed]'),
remoteCallVideoPlayer.waitForElement(appId, 'div#video-player'),
remoteCallVideoPlayer.waitForElement(
appId, '#video-container > video[autopictureinpicture]'),
......
......@@ -67,7 +67,6 @@ js_library("video_player") {
"//ui/file_manager/base/js:filtered_volume_manager",
"//ui/file_manager/file_manager/common/js:metrics_base",
"//ui/file_manager/file_manager/common/js:util",
"//ui/webui/resources/js:i18n_template_no_process",
"//ui/webui/resources/js/cr/ui:menu",
"//ui/webui/resources/js/cr/ui:menu_item",
]
......
......@@ -59,7 +59,6 @@ initPromise
.then(function() {
const isReady = document.readyState !== 'loading';
assert(isReady, 'VideoPlayer DOM document is still loading');
i18nTemplate.process(document, loadTimeData);
return new Promise(function(fulfill, reject) {
util.URLsToEntries(window.appState.items, function(entries) {
metrics.recordOpenVideoPlayerAction();
......
......@@ -27,7 +27,6 @@
'use strict';
// <include src="../../../webui/resources/js/load_time_data.js">
// <include src="../../../webui/resources/js/i18n_template_no_process.js">
// <include src="../../file_manager/common/js/async_util.js">
// <include src="../../file_manager/common/js/file_type.js">
......
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