Commit 195b6482 authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

FilesApp add fileManagerPrivate crostini functions for test.html

Add fileManagerPrivate.isCrostiniEnabled and
fileManagerPrivate.mountCrostiniContainer.

Add paper-progress polymer lib to test.html.

Bug: 834103
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: If90e8005100286229219a9771b488722b0f14275
Reviewed-on: https://chromium-review.googlesource.com/1059098Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558658}
parent db035f87
......@@ -118,9 +118,16 @@ chrome.fileManagerPrivate = {
grantAccess: (entryUrls, callback) => {
setTimeout(callback, 0);
},
isCrostiniEnabled: (callback) => {
setTimeout(callback, 0, true);
},
isUMAEnabled: (callback) => {
setTimeout(callback, 0, false);
},
mountCrostiniContainer: (callback) => {
// Simulate startup of vm and container by taking 3s.
setTimeout(callback, 3000);
},
onAppsUpdated: {
addListener: () => {},
},
......
......@@ -133,14 +133,17 @@ scripts += ['<script src="%s"></script>' % s for s in [
# * background/js/background_common_scripts.js
# * background/js/background_scripts.js
# into <script> tags in main.html.
# Add polymer lib at start.
# Add polymer libs at start.
bg_scripts = read('background/js/background_scripts.js').split('\n')
includes2scripts('foreground/js/main_scripts.js')
includes2scripts('background/js/background_common_scripts.js')
includes2scripts('background/js/background_scripts.js')
main_html = replaceline(main_html, 'foreground/js/main_scripts.js', [
('<link rel="import" href="../../../third_party/polymer/v1_0/'
'components-chromium/polymer/polymer.html">')] + scripts)
'components-chromium/polymer/polymer.html">'),
('<link rel="import" href="../../../third_party/polymer/v1_0/'
'components-chromium/paper-progress/paper-progress.html">'),
] + scripts)
# Load QuickView in iframe rather than webview.
# Change references in files_quick_view.html to use updated
......
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